knitr::opts_chunk$set(echo = TRUE)
Describe the project, including the overall approach, data, and any special issues or observations that you feel a reviewer needs to understand.
Split your work into chunks with a brief text description of the step and any important information preceeding each chunk.
# Library(survey) # library(openxlsx) # options(scipen = 99) # # Load data # pathway to data # Loading functions # source(pathway to functions) # if not an r project, what is the working directory
Brief comment
# variable transformations
From here the type of analysis will determine how many steps and how to break them up
Describe each step in text before the chunk
Brief description of what is being saved and where
# save a list of table objects to separate xlsx sheets # tables_list <- list("sheetname" = table1, "sheet2name" = table2) # save to spreadsheet with data and time in name, each table as a separate tab # openxlsx::write.xlsx(tables_list, # file = paste(format(Sys.time(), '%Y_%m_%d %H_%M'), "filename.xlsx", sep = "_"))
What do we want to tell readers about what we did
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.