For loops in R can lose class information
Did you know R‘s for() loop control structure drops class annotations from vectors?
Did you know R‘s for() loop control structure drops class annotations from vectors?
The R functions base::sample and base::sample.int are functions that include extra “conveniences” that seem to have no purpose beyond encouraging grave errors. In this note we will outline the problem and a suggested work around. Obviously the R developers are highly skilled people with good intent, and likely have no […]
As an R programmer have you every wondered what can be in a data.frame column?
Just a warning: double check your return types in R, especially when using different modeling packages.
The primary user-facing data types in the R statistical computing environment behave as vectors. That is: one dimensional arrays of scalar values that have a nice operational algebra. There are additional types (lists, data frames, matrices, environments, and so-on) but the most common data types are vectors. In fact vectors […]
Readers returning to our blog will know that Win-Vector LLC is fairly “pro-R.” You can take that to mean “in favor or R” or “professionally using R” (both statements are true). Some days we really don’t feel that way.