Description Usage Arguments Examples
View source: R/createSmokingHistories.R
This function post-processes the SHG output. It is called by processSHG.R, after decompose_output_files.py has processed the SHG outputs. It reads the people_ages_mat.txt, people_cpd_mat.txt, and people_mat.txt files created by the decompose[...].py. This function is not intended for direct use by the user, see processSHG().
1 | createSmokingHistories(year)
|
year |
the year of birth for the cohort |
1 2 | setwd("~/SHG/") # navigate to the SHG directory first
createSmokingHistories(year = 1950) # Do not run this code, see processSHG()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.