2 ms·
That particular issue can also be solved by setting options(stringsAsFactors = FALSE). Anyway, the default behaviour was the sensible thing to do at the time: h
by kgwgk 8y ago
That particular issue can also be solved by setting options(stringsAsFactors = FALSE). Anyway, the default behaviour was the sensible thing to do at the time:
https://simplystatistics.org/2015/07/24/stringsasfactors-an-unauthorized-biography/ https://simplystatistics.org/2015/07/24/stringsasfactors-an-...
- flother 8y agoBeware of adding that to your .RProfile though. The author makes a good argument for why that's a bad idea: your code will execute differently on someone else's machine. http://arrgh.tim-smith.us/factors.html#fn:options http://arrgh.tim-smith.us/factors.html#fn:options
- kgwgk 8y agoThat’s true. It may create more problems than it solves. I don’t change the default value myself, setting stringsAsFactors=FALSE when required is good enough for me.