Articles by R – kata helion

organize blocks of code in R with with() ?

March 31, 2024 | R – kata helion

In their “Object-Oriented Programming is Bad” video, Brian Will mentions a desired reserved word: use (timestamp) that could look something like this: The variables you specify come from the enclosing scope and would be available as copies within a separate … Continue reading →
[Read more...]

Is rowSums slow?

March 17, 2024 | R – kata helion

I guess it might have been obvious, but I was surprised that rowSums appeared much slower slower than directly doing the matrix operation. At first I assumed it was because it has some overhead in the form of input handling/casting … Continue reading →
[Read more...]

Better help window in rstudio

November 2, 2022 | R – kata helion

RStudio takes up a lot of screen real estate with its panes. I prefer to have two floating windows for script and console, plus help when needed. Unfortunately entering ?pch, for example, opens up a pane and squeezes everything out … Continue reading →
[Read more...]

stringsAsFactors = FALSE

May 26, 2022 | R – kata helion

R is changing the way it deals with converting strings to factors in functions like data.frame(). There is a detailed post about the plan, but that post was created before version 4.0.0 so I’m not sure if anything has changed. … Continue reading →
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)