Thomas Lumley 3/31/2022

stringsAsFactors=do_you_feel_lucky

Read Original

This technical article discusses a bug encountered in R's `survey` package when estimating proportions by group. It highlights the critical difference between strings and factors, showing how using `stringsAsFactors=FALSE` can lead to incorrect labeling in statistical output when groups have disjoint factor levels, even if the number of levels is coincidentally the same.

stringsAsFactors=do_you_feel_lucky

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