Hello! I'm very new to using R and I'm trying to create a new variable that is the natural log of the number of patients (which is a column of data in my data set) +1 so that I can get -Inf if there are 0 number of patients when logged.
I've been trying to figure this out for a while and I can't seem to get anywhere, any help would be greatly appreciated. Thank you!