Skip to content
Prev 361085 / 398506 Next

need help to convert animal ID to a factor

I am not familiar with any function called "toFactor". It may be part of some contributed package that you need to re-load. 

However, one does not ordinarily need to use a package to convert one column of a data frame into a factor, since factors are supported by base R.

Eg

MyDF$ID <- factor( MyDF$ID )