stata2ddi: stata to ddi

Description Usage Arguments Examples

Description

Imports a Stata file and transforms it to a ddi object.

Usage

1
2
3
  stata2ddi(filename, data_name, data_label = NULL,
    missing_codes = NULL, keep_data = TRUE,
    multicore = FALSE, is_stata_mis = TRUE)

Arguments

filename

Name of a Stata file.

data_name

Name of the dataset.

data_label

Label of the dataset.

missing_codes

Array of values, that should be treated as missing values.

keep_data

Defines, if the original data should be included in the ddi object.

multicore,

Defines, if you want r2ddi to use R's multicore functionallity.

Examples

1
2
3
4
5
## Import Stata file
test <- stata2ddi("test.dta", "test_data", multicore=TRUE)

## Export ddi object to XML
ddi2xml(test, "text.xml")

ddionrails/r2ddi documentation built on May 15, 2019, 1:52 a.m.