demographics_filter: demographics_filter

Description Usage Arguments Value Examples

View source: R/demographics_filter.R

Description

demographics_filter

Usage

1
demographics_filter(dataset, age, gender, nationality)

Arguments

dataset

the dataset to be treated, compulsory argument, cannot be empty

age

input value age, the data will be filtered according to the appropriate age group of the input value. Optional argument

gender

input value = "M" or "F", the data will be filtered accordingly. Optional argument

nationality

input value nationality, the data will be filtered accordingly. Optional argument

Value

filtered dataset with only desired data points remaining

Examples

1
2
3
4
5
## Not run: 
demographics_filter(data_all, age = 34, gender = "F", nationality ="USA")
demographics_filter(data_all, gender = "F")

## End(Not run)

ruoyzhang/FunctionsForTeamCyCy documentation built on May 29, 2019, 9 a.m.