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