Follow

I'm finally reading the official intro to R, after using it for 10 years and teaching about it for 4, so this might become a thread of "interesting things I learned".
cran.r-project.org/doc/manuals
@rstats

@rstats sink("a_text_file.txt") will redirect all outputs to that file until sink() is run again

@rstats ls() is the same as objects().
The second's name is so much more self-explanatory, and less likely to be confused with the shell's ls !
RStats

@rstats is.na() is TRUE for both NA and NaN but is.nan() is only TRUE for NaN.

Sign in to participate in the conversation
Mastodon - IndieHosters

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!