Storing the log of column data

I have data I imported into RStudio from an xls file inside a variable l_poisson and also I have this same data stored within a vector named What I would like to do is take the logarithm of my column entries (of the xls file) or of the entries in general (of the vector) and then store this within a new variable called pois.log though it's not working with my code.

pois.log <- log($Longueur)

if l_poisson is a data.frame containing a column called Longueur, whereas pois_data is a mere vector with the same data as in Longeur then either

pois.log <- log(


pois.log <- log( l_poisson$Longueur)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.