Skip to content
Prev 303661 / 398503 Next

Opinion: Why I find factors convenient to use

On Fri, Aug 17, 2012 at 07:34:35PM +0100, Rui Barradas wrote:
Hi.

I use stringsAsFactors = FALSE quite frequently. If there is a discussion
on R-devel, whether this should be the default, i would support this.

Factors are very useful and sometimes necessary, but they are hard to manipulate.
As Jeff Newmiller said, it is a good strategy to prepare the data as character
type and convert to a factor, when they are complete. The users should know, how
to use factors, however the strategy "convert to a factor eventually" is
more consistent with not having stringsAsFactors = TRUE as the default.

Petr Savicky.