keyTemplateStata {kutils}R Documentation

Import a Stata (version 12 or lower) file, create a key representing the numeric -> factor transition

Description

This is a way to keep track of the scores that are used in the Stata file. It is also an easy way to start a new variable key that makes it convenient to work on the value_new column with R text functions.

Usage

keyTemplateStata(dat, long = TRUE)

Arguments

dat

A character string path to the Stata file

long

TRUE returns a long key, otherwise a wide key

Value

A variable key (long or wide)

Author(s)

Paul Johnson <pauljohn@ku.edu>


[Package kutils version 1.73 Index]