Skip to contents

It generates a new column 'group' in the survey_features dataframe, representing the group interval for each row based on the age_min and age_max columns.

Usage

add_age_bins(survey_features)

Arguments

survey_features

A dataframe containing age_min and age_max columns representing the minimum and maximum age boundaries for each group.

Value

A dataframe with an additional 'group' column representing the group interval for each row based on the age_min and age_max columns.