Description Usage Arguments Examples
View source: R/add_monthly_covariates.R
This function performs a merge of monthly covariate data into a dataframe with day-level observations. E.g. I have multiple observations from January 2012 and I want to add the monthly January covariate data to each of those observations.
1 | add_monthly_covariates(target_df, monthly_data)
|
target_df |
Target dataframe with day-level observations, where "date" is the last column |
monthly_data |
Dataframe of covariates, recorded on a monthly basis on the 1st day of each month, where "date" is the last column |
1 | add_monthly_covariates(FARC_results, monthly_viol)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.