Help with percentages

Hello everyone. I am a beginner R user. I need help with finding the percentage of column F to column E for row 255. The data is a total of 2113 rows. How do I go about doing this?

We need some sample data and I think more explanation of what you are doing.

and you might find this useful

If you wanted just row 255:

df[255, "ColumnF"] / df[255, "ColumnE"]

If you want the percentage for all rows:

df$ColumnPercent <- df$ColumnF / df$ColumnE

Hope this helps.

1 Like

This topic was automatically closed 21 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.