read_SHeS_2013: Read Scottish Health Survey 2013

Description Usage Arguments Details Value Examples

View source: R/read_SHeS_2013.R

Description

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

Usage

1
2
3
4
5
read_SHeS_2013(
  root = c("X:/", "/Volumes/Shared/"),
 
    file = "ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2013/UKDA-7594-tab/tab/shes13i_archive_v5.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.

MISSING VALUES

Value

Returns a data table. Note that:

Examples

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

data_2013 <- read_SHeS_2013("X:/", 
"ScHARR/PR_Tobacco_mup/Data/Scottish Health Survey/SHeS 2013/UKDA-7594-tab/tab/shes13i_archive_v5.tab")


## End(Not run)

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