convert_from_rds: Export PSID files to another statistical language

Description Usage Arguments Examples

View source: R/7convert_from_rdata.R

Description

Exports all .rds files in the chosen directory into a common file format used by one of three other statistical programming languages (SPSS, SAS, and STATA). Unlike most alternatives, this function retains all variable labels provided by the PSID.

Usage

1
convert_from_rds(language, in_direc, out_direc)

Arguments

language

Language to export PSID .rds files into (options include SPSS, SAS, and STATA)

in_direc

Directory of PSID .rds files to export. Note that large files can take a long time to export.

out_direc

Directory for exported files to be placed

Examples

1
2
3
4
5
convert_from_rds(
    language="STATA", 
    in_direc=system.file("extdata","rds_dir", package = "easyPSID"),
    out_direc=tempdir()
)

easyPSID documentation built on Oct. 3, 2021, 5:06 p.m.