read_SHeS_2017: Read Scottish Health Survey 2017

Description Usage Arguments Details Value Examples

View source: R/read_SHeS_2017.R

Description

Reads and does basic cleaning on the Scottish Health Survey 2017.

Usage

1
2
3
4
5
read_SHeS_2017(
  root = c("X:/", "/Volumes/Shared/"),
 
    file = "ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2017/UKDA-8398-tab/tab/shes_17i_archive_v1.tab"
)

Arguments

root

Character - the root directory.

file

Character - the file path and name.

Details

The Scottish Health Survey is designed to yield a representative sample of the general population living in private households in Scotland every year. In 2017, across all sample types, interviews were held in 3,062 households with 3,697 adults (aged 16 and over), and 1,603 children (aged 0-15).

MISSING VALUES

Value

Returns a data table. Note that:

Examples

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

data_2017 <- read_SHeS_2017("X:/", 
"ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2017/UKDA-8398-tab/tab/shes_17i_archive_v1.tab")


## End(Not run)

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