University of Wisconsin–Madison

Tag: stringsAsFactors

Strings as factors in R

Factors in R I recently mentioned the important default change that occurred with the release of the latest version of R (version 4.0.3) in a post titled  Default preference reversal in R and how that can impact current code. Recently I had 2 more encounters with this notion and I thought I’d write here how …

Default preference reversal in R

Default preferences I enjoy using R and RStudio, but I am always weary of upgrading R because that usually leads to some issue(s). The most recent was a bit long for me to diagnose, even though in retrospect it is a simple change in default preference, namely changing the default setting default.stringsAsFactors() from  TRUE in …