smk_status: Cigarette smoking status

Description Usage Arguments Details Value Examples

View source: R/smk_status.R

Description

Categorise cigarette smoking into current, former and never regular cigarette smoker.

Usage

1

Arguments

data

Data table - the Health Survey for England dataset.

Details

Note that if some smokes either regularly or ocassionally, then they are classified as a current regular cigarette smoker. People who used to smoke regularly or ocassionally are classified as former smokers, but people who have only tried a cigarette once or twice are classified as never smokers.

This variable is created for adults aged >= 16 years, and children aged 8-15 years.

Value

Returns two smoking variables:

Examples

1
2
3
4
5
6
7
8
## Not run: 

data_2016 <- read_2016()

data_2016 <- smk_status(data = data_2016)


## End(Not run)

dosgillespie/hseclean documentation built on May 2, 2020, 1:15 a.m.