##******************************************************************************
## Create value-added dataset for analysis
## Initial version:
##******************************************************************************
##******************************************************************************
# set up -----------------------------------------------------------------------
##******************************************************************************
## load required packages
pkg_list <- c("Hmisc", "dplyr", "reshape2", "car",
"scales", "ggplot2", "gridExtra",
"lubridate")
for (i in pkg_list) eval(parse(text = paste("library(", i, ")", sep = "")))
## paths
input <- file.path("..", "..", "Data", "Imported", "xxx.Rdata")
## load data
load(input)
##******************************************************************************
# format data ------------------------------------------------------------------
##******************************************************************************
##******************************************************************************
# manipulate data --------------------------------------------------------------
##******************************************************************************
##******************************************************************************
# export data ------------------------------------------------------------------
##******************************************************************************
## Rdata
save(..., file = file.path("..", "..", "Data", "VAD", "xxx.Rdata"))
## csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.