Thomas Lumley 7/25/2015

stringsAsFactors = <sigh>

Read Original

This article delves into the infamous 'stringsAsFactors' default in R, using it as a case study to explore broader issues in R's design. It explains the historical context of factors as a data-compression hack for strings, their role as enumerations, and how their automatic conversion in functions like read.table() became a persistent pain point for programmers, highlighting tensions between statistical computing and software engineering needs.

stringsAsFactors = <sigh>

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes