debugging r code

Hi, the tenth column is a character and can't be summed. Maybe this could be converted to a numeric column first if it is a column that you want to sum.

Otherwise, next time please provide a reproducible example of your dataset (a few rows of sample data).