For this investigation we are going to use the sleepdata
data set from the lme4 package. Here is the head of the data frame:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#purling is in the knitr package | |
library(knitr) | |
setwd("C:/ALR/Models/boo") #example using local windows directory, can easily switch | |
#it can be really simple | |
purl( "script1.Rmd", "script1.R" ) | |
#just specify the rmd filename, then r filename, with extensions |