Learn R Programming

valueEQ5D (version 0.6.1)

subset_gender_age_to_group: Function to check the gender column and age column subset based on the values in it have used) in a data frame

Description

Function to check the gender column and age column subset based on the values in it have used) in a data frame

Usage

subset_gender_age_to_group(data, gender, agelimit)

Arguments

data

a data frame

gender

groupby gender either male or female expected

agelimit

list of ages e.g. c(10,20)

Value

the column number

Examples

Run this code
# NOT RUN {
subset_gender_age_to_group(data.frame(age = rep(20, 4), gender = 
rep("male", 4)), "male", c(10, 70))
# }

Run the code above in your browser using DataLab