read_2001: Read HSE 2001

Description Usage Arguments Details Value Examples

View source: R/read_2001.R

Description

Reads and does basic cleaning on the Health Survey for England 2001.

Usage

1
2
3
4
read_2001(
  root = c("X:/", "/Volumes/Shared/"),
  file = "ScHARR/PR_Consumption_TA/HSE/HSE 2001/UKDA-4628-tab/tab/hse01ai.tab"
)

Arguments

root

Character - the root directory.

file

Character - the file path and name.

Details

A sample of the population living in private households. All persons living in the house, including those under 2 years were eligible for inclusion. At addresses where there were more than two children under 16, two children were selected at random. Information was obtained directly from persons aged 13 and over. Information about children aged 0-12 was obtained from a parent, with the child present.

WEIGHTING

There is no weighted variable for household adult data. For children under 16, the weighted variable Child_Wt should be used.

MISSING VALUES

Value

Returns a data table. Note that:

Examples

1
2
3
4
5
6
## Not run: 

data_2001 <- read_2001("X:/", "ScHARR/PR_Consumption_TA/HSE/HSE 2001/UKDA-4628-tab/tab/hse01ai.tab")


## End(Not run)

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