I have a data.frame with variables var1 var2 (both strings) and variables x, y, and z. I would like
data.frame
var1
var2
x
y
z
It could be a problem with the attributes or grouping variable. We can reset the dataset without external attributes by converting to data.frame and then do the mutate_at
mutate_at
df_ %>% as.data.frame %>% mutate_at(vars(x, y, z), funs(norm = ./.[1]))