Skip to content
Prev 377458 / 398502 Next

Help with factor column replacement value issue

My suggestion is to avoid converting the column to a factor until it is cleaned up the way you want it. There is also the forcats package, but I still prefer to work with character data for cleaning. The stringsAsFactors=FALSE argument to read.table and friends helps with this.
On November 16, 2018 8:16:22 AM PST, Michael Dewey <lists at dewey.myzen.co.uk> wrote: