NEWS.md
2022-05-05
2021-11-01
rec_with_table().variables.csv and variable_details.csv.2021-10-25
rec_with_table() to support round bracket interval notation.2021-08-20
pct_time_fun() and variable_details.2021-06-23
age_cat_fun() to support decimal values from DHHGAGE_cont.pack_years_fun() and time_quit_smoking_fun().2021-01-22
merge_rec_data() that merges and labels transformed CCHS datasets.tagged_na in derived variables. Additional documentation added for creating derived variables in the tagged_na article.variables.csv and variable_details.csv.2020-09-16
recTo values for GEOGPRV to values specified in CCHS.2020-09-11
variable_details.csv is now changed to interval notation (e.g. 7:9 is now denoted as [7,9]).description column added to variables.csv to allow a description of variables.role column added to variables.csv to allow users to set roles for variable manipulation.Age: 1. DHHGAGE_5: age variable categorized into 5 20-year age groups. Used in all CCHS cycles. 2. DHHGAGE_D: age variable categorized into 8 10-year age groups. Used in all CCHS cycles.
Depression: 1. DPSDPP: Depression Scale - Predicted Probability. Used in all CCHS cycles. 2. DPSDSF: Depression Scale - Short Form Score. Used in all CCHS cycles 3. DIS_10G: Frequency - distress: felt sad / depressed - past month. Used in CCHS cycles 2005-2014. 4. DIS_10H: Frequency - distress: depressed/nothing cheers - past month. Used in CCHS cycles 2005-2014. 5. DPSDMT: Specific month when felt depressed. Used in all CCHS cycles. 6. DPSDWK: Number of weeks felt depressed - (D). Used in all CCHS cycles. 7. DPS_02: Felt sad/blue/depressed - 2 weeks or more - 12 mo. Used in CCHS cycles 2007-2012. 8. DPS_03: Sad/depressed - length feelings lasted - 2 wk. Used in CCHS cycles 2007-2012. 9. DPS_04: Sad/depressed - frequency - 2 wk. Used in CCHS cycles 2007-2012. 10. DPS_05: Sad/depressed - lose interest in things - 2 wk. Used in CCHS cycles 2007-2012. 11. DPS_06: Sad/depressed - felt tired out / low on energy - 2 wk. Used in CCHS cycles 2007-2012. 12. DPS_07: Sad/depressed - weight change - 2 wk. Used in CCHS cycles 2007-2012. 13. DPS_08A: Sad/depressed - weight change (amount) - 2 wk. Used in CCHS cycles 2007-2012. 14. DPS_08B: Sad/depressed - weight change (lb/kg) - 2 wk. Used in CCHS cycles 2007-2012. 15. DPS_09: Sad/depressed - trouble falling asleep - 2 wk. Used in CCHS cycles 2007-2012. 16. DPS_10: Sad/depressed trouble falling asleep - frequency - 2 wk. Used in CCHS cycles 2007-2012. 17. DPS_11: Sad/depressed - trouble concentrating - 2 wk. Used in CCHS cycles 2007-2012. 18. DPS_12: Sad/depressed - felt down on self - 2 wk. Used in CCHS cycles 2007-2012. 19. DPS_13: Sad/depressed - thought a lot about death - 2 wk. Used in CCHS cycles 2007-2012. 20. DPS_14: Sad/depressed - number of weeks - 12 mo. Used in CCHS cycles 2007-2012.
Influenza: 1. FLU_160: Ever had a flu shot. Used in all CCHS cycles. 2. FLU_162: Last time had flu shot. Used in all CCHS cycles.
2020-03-30
binge_drinker_fun()
resp_condition_fun1() that was not correctly handling respondents under 35 with respiratory conditions2020-03-20
attach_data_name: new argument for adding data_name to rec_with_table() returnrec_with_table()
2020-03-03
pct_time_fun function to output value from 0-100% as opposed to 0-1rec_with_table()
variables.csv & variable_details.csv
2020-02-19
rec_with_table() to include all values in recFrom columnvariables.csv & variable_details.csv, as well as labelling of derived categorical variables2020-02-11
rec_with_table() to match output type with specified toType for derived variables2020-02-10
2020-02-04
variables.csv
DESCRIPTION
resp_condition_fun1(), resp_condition_fun2(), resp_condition_fun3(),2020-01-23
print_note() parameter in rec_with_table() to notes.message() is now used to print messages onto console. This enables the ability to easily suppress console output for testing purposes.2020-01-13
rec_with_table() function call that uses data variable name as database_name as well as default variables and variable_details that come with the package.DESCRIPTION
README.md
rec_with_table() callrec_with_table() call2020-01-08
Changed data_source parameter in rec_with_table() to data.
Changed order of parameters to have variables after dataset_name.
set_data_labels() when a variable is present in details but missing in variables and vice versa.DESCRIPTION to expand description of package and added The Ottawa Hospital as author.age_cat_fun() to account for age below 0 and include warning messages for respiratory functions.set_data_labels().rec_with_table().README.md for better clarity.2019-12-18
2019-11-29
DHHGAGE_cont) that is also harmonious across all CCHS cycles.