I know how to log-transform a histogram, but how do I apply such a transformation to the actual variable in the dataset? I've searched Google but all the results pertain to viewing transformed data, not actually transforming it.

I know that I can just define an object, such as "log_variable <- log(variable)," but I'm running ANOVA and I don't know if or how I can run it on an object and not the dataset variable itself.

Thanks!