subset_gender_age_to_group {valueEQ5D} | R Documentation |
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
subset_gender_age_to_group(data.frame(age = rep(20, 4), gender =
rep("male", 4)), "male", c(10, 70))
[Package valueEQ5D version 0.7.2 Index]