CreateNLSdata: Constructor for NLSdata

Description Usage Arguments Examples

Description

Converts raw NLS Investigator output to an NLSdata object

Usage

1
2
CreateNLSdata(codebook, csv.extract,
                     na.strings =  c("-1", "-2", "-3", "-4", "-5"))

Arguments

codebook

the .cdb file from the NLS Investigator export

csv.extract

the .csv file from the NLS Investigator export

na.strings

which of the missing value situations to represent as NA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(NLSdata)
codebook <- system.file("Investigator", "Religion.cdb", package = "NLSdata")
csv.extract <- system.file("Investigator", "Religion.csv", package = "NLSdata")


nls.obj <- CreateNLSdata(codebook, csv.extract)
class(nls.obj)

names(nls.obj)

head(nls.obj$data[order(nls.obj$data$PUBID.1997), c(2, 8, 9, 11)])
nls.obj$metadata[["YSAQ_282A2.2005"]]

google/NLSdata documentation built on May 17, 2019, 7:43 a.m.