R/load_template.r

Defines functions load_template

################################################################
load_template <- function(){
#   ```{r, echo = TRUE, eval = FALSE}
ld <- '
#### load ####
print(file.path(indir,infile))
dat <- read.csv(file.path(indir,infile), stringsAsFactors = F)
    
#### check ####
str(dat)
# write down the nrows and ncols here for future reference
head(dat) 
tail(dat)
summary(dat)
# lapply(dat, table)
'
# ```
return(ld)
}
ivanhanigan/exploratoryanalysistemplate documentation built on May 17, 2017, 5:26 a.m.