View source: R/format_mortality_to_ena.R
format_mortality_to_ena | R Documentation |
This function will take a standardized mortality dataset and reshape it for use in the ENA software.
format_mortality_to_ena(
df,
file_path = NULL,
keep_cluster_ids = NULL,
keep_hh_ids = NULL
)
df |
Inputs a dataframe which has been standardized already by the format_mortality_current_census function. |
file_path |
Inputs an optional character value for specifying a file path to save the output as an xlsx file. |
keep_cluster_ids |
A TRUE or FALSE value whether the user wants to include cluster ids as they are in the dataset, or have the function automatically recode them to ambiguous numerical values for ENA. |
keep_hh_ids |
A TRUE or FALSE value whether the user wants to include households ids as they are in the dataset, or have the function automatically recode them to ambiguous numerical values for ENA. |
Returns a dataframe with wide mortality data, that is each row is a single household, which is formatted for ENA. The resulting dataframe can be copy-pasted straight into the ENA program for analysis of mortality data.
## Not run: format_mortality_to_ena(df = proc_mortality1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.