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