
One tip per day M-F on the R programming language #rstats. Brought to you by the R community team at Microsoft.
Joined May 2011
- Tweets2.8K
- Following10
- Followers66.9K
- Likes8
A tutorial from @ROpenSci on reproducible research with Docker containers ropenscilabs.github.io/r-doc… #rstats
boot(data,statistic,R) in the {boot} package will generate R bootstrap replicates of a statistic cran.r-project.org/package=b… #rstats
Use saveRDS(obj,"myfile") and readRDS(obj,"myfile") to save / read an R object to / from a file rdocumentation.org/packages/… #rstats
To debug warnings, options(warn=2) converts warnings into errors rdocumentation.org/packages/… #rstats
Strip non-ASCII characters from a string with iconv(rich.text, to="ASCII", sub="") #rstats rdocumentation.org/packages/…
If two packages define functions with the same name, use :: to call the one you want: stackoverflow.com/q/39137110… #rstats
Meet other R users at a local R user group in your area: jumpingrivers.github.io/meet… #rstats
Use the Matrix package for efficient linear algebra with sparse, symmetric, positive semidefinite and general matrices jimskinner.github.io/post/el… #rstats
The "round" function uses the "round-to-even" rule. round(3.5) and round(4.5) are both 4 rdocumentation.org/packages/… #rstats
Look here rdocumentation.org/packages/… for documentation on mathematical functions like beta(a,b) or gamma(x) #rstats
Use R to add text, tables and charts to a Word or Powerpoint template with the officer package #rstats davidgohel.github.io/officer…
The story behind R release names like "Very Secure Dishes" livefreeordichotomize.com/20… #rstats
Use TRUE and FALSE to represent the boolean values. These are reserved words, unlike T and F which can be overwritten as variables.
Use colSums to quickly calculate totals from the columns of a large matrix or table: rdocumentation.org/packages/… #rstats
Type ?Syntax to learn the precedence of operators in the R language: rdocumentation.org/packages/… #rstats
What They Forgot to Teach You About R: e-book on the common sources of friction in data analysis with R, by @JennyBryan and @jimhester_ rstats.wtf/ #rstats
format(x, scientific=TRUE) prints numeric data in exponential format, so 0.0001 prints as 1e-04 rdocumentation.org/packages/… #rstats
Data Carpentry for Biologists: a self-guided 15-week course with videos and exercises in R datacarpentry.org/semester-b… #rstats
Guide to density estimation in R from Deng and Wickham vita.had.co.nz/papers/densit… #rstats
rle(x) ("run-length encoding") computes the lengths of runs of equal values in a vector rdocumentation.org/packages/… #rstats