Skip to contents

This dataset, smoking_UK_tbl_df, is a tibble containing survey data on smoking habits from the UK, with demographic characteristics and tobacco consumption patterns from 1,691 respondents.

Usage

data(smoking_UK_tbl_df)

Format

A tibble with 1,691 observations and 12 variables:

gender

Gender of respondent (factor with 2 levels)

age

Age in years (integer)

marital_status

Marital status (factor with 5 levels)

highest_qualification

Highest education qualification (factor with 8 levels)

nationality

Nationality (factor with 8 levels)

ethnicity

Ethnic group (factor with 7 levels)

gross_income

Income bracket (factor with 10 levels)

region

UK region (factor with 7 levels)

smoke

Smoking status (factor with 2 levels)

amt_weekends

Cigarettes smoked on weekends (integer)

amt_weekdays

Cigarettes smoked on weekdays (integer)

type

Type of tobacco used (factor with 5 levels)

Source

Data taken from the openintro package version 2.5.0

Details

The dataset name has been kept as 'smoking_UK_tbl_df' to avoid confusion with other datasets in the R ecosystem. This naming convention helps distinguish this dataset as part of the PulmoDataSets package. The suffix 'tbl_df' indicates that this is a tibble data frame. The original content has not been modified in any way.