createSmokingHistories: Creates Smoking histories

Description Usage Arguments Examples

View source: R/createSmokingHistories.R

Description

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().

Usage

1

Arguments

year

the year of birth for the cohort

Examples

1
2
setwd("~/SHG/") # navigate to the SHG directory first
createSmokingHistories(year = 1950) # Do not run this code, see processSHG()

ekhco/LCsim documentation built on Nov. 4, 2019, 11:50 a.m.