Hello! I'm very new to R and can't figure out a problem of assigning a creating a new variable that takes the natural log of its original.
ggplot(data=Crime, aes(x=MHI))+
geom_histogram()+
theme_minimal()
I'd like to take the log of the x variable and assign it as a new variable, logMHI.
I've tried a few different things, none seem to work.
Thanks so much!