Intro to R (part 1):
Preface

George G. Vega Yon
University of Southern California
Department of Preventive Medicine

July 7th, 2018

Before we start

We will be using:

What is R

The programming language

A little bit of history

Picture by the New York Times https://nyti.ms/2GC3ruP
From left to right: John Chambers, Robert Gentleman, and Ross Ihaka.

(Source wiki)

The first lesson: Getting help

in R

In R, if you want to:

On the web

Books that I recommend

The first lesson: Getting help (How to read it?)

The first lesson: Getting help (a mental model)

My own personal way of looking for R-based solutions to my problems (in science… of course)

Questions

  1. Using the stats package, How can you estimate a generalized linear model in R?

  2. What is the command to transpose a matrix in R? What about the command for inverting a matrix?

  3. Looking at CRAN task Views, what R packages are available for convex optimization? What about stochastic optimization?

  4. Create a list of R packages that provide wrappers for working with Slurm.

  5. What does return the function for fitting nonlinear least squares in the stats package?

References

Jones, O., R. Maillardet, and A. Robinson. 2009. Introduction to Scientific Programming and Simulation Using R. Chapman & Hall/Crc the R Series. CRC Press. https://books.google.com/books?id=gnZC525wnzIC.

Matloff, N. 2011. The Art of R Programming: A Tour of Statistical Software Design. No Starch Press Series. No Starch Press. https://books.google.com/books?id=o2aLBAAAQBAJ.

Peng, R. 2012. R Programming for Data Science. Lulu.com. https://books.google.com/books?id=GSePDAEACAAJ.

R Core Team. 2018. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.

Wickham, H. 2015. Advanced R. Chapman & Hall/Crc the R Series. CRC Press. https://books.google.com/books?id=FfsYCwAAQBAJ.

Wickham, H., and G. Grolemund. 2016. R for Data Science: Import, Tidy, Transform, Visualize, and Model Data. O’Reilly Media. https://books.google.com/books?id=vfi3DQAAQBAJ.