When I try to convert a column to a factor using R markdown I get the following error and I don\'t understand why:
Sample code:
```{r echo=FALS