I have a data frame with two columns. One named "Volume" and the other "Area". I would like to generate one column "volume per Area." How do I do this simply? without using any packages etc. I'm guessing the cut function but not sure where to go from there.
Thanks in advance!
Sean
(adf <- data.frame( volume = 1:10, area = 4 + sqrt(1:10) )) adf$`volume per area` <- adf$volume / adf$area adf
brilliant, thank you so much. Have a good one.
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.