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