Converting species column to factor

Question of my assignment: How many fish species are in the dataset and what are they? Hint: you may find it useful to first convert the “species” column to a factor.

I don't know how to covert columns into factors. I have 4 different species in my data set. They all need to be separated out so I can get mean, median, sd, and so on.

Take a look at the as.factor()function

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

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.