top of page

Using Rfuncs (is easy!)

Using Rfuncs is easy. Rfuncs examples have greater depth than what you typically see in R functions obtained from CRAN. Running them yourself will not only teach you about the function, I hope they will challenge your thinking about statistical science and motivate you to be more innovative and modern.

​

Using RStudio, the steps are:

  1. Open an Rfunc file you have downloaded. For example, AgeDays() was created to teach how to use Rfuncs.

  2. Click "Source" in the upper right corner of RStudio. Everything is now loaded into R's brain.

  3. Search for "RunExamples <- FALSE" to get to the examples, which did not run when you sourced the file.

  4. Read the comments, and when you get to statements you want to run yourself, select them, and hit "Run". The output appears in RStudio's Console pane.

​

This is demonstrated in this (deliberately slow) 86-second video.

Using AgeDays() to learn how to use Rfuncs.

​

​

bottom of page