age_bandizer | R Documentation |
Age Band Creation: Create a new column of 5 year Age Bands from an integer column
age_bandizer(df, Age_col)
df |
a tidy dataframe in standard Master Patient Index format ie SangerTools::PopHealthData |
Age_col |
a integer column within @param df NAs must be removed or imputed prior to running this function |
A dataframe with width ncol(df)+1, new column will be named Ageband and will be a factor with levels defined
library(SangerTools)
library(dplyr)
health_data <- SangerTools::PopHealthData
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.