Learn R Programming

readstata13 (version 0.10.1)

get.label.tables: Get all Stata Label Sets for a Data.frame

Description

Retrieve the value labels for all variables.

Usage

get.label.tables(dat)

Value

Returns a named list of label tables

Arguments

dat

data.frame. Data.frame created by read.dta13.

Author

Jan Marvin Garbuszus jan.garbuszus@ruhr-uni-bochum.de

Sebastian Jeworutzki sebastian.jeworutzki@ruhr-uni-bochum.de

Details

This function returns the factor levels which represent a Stata label set for all variables.

Examples

Run this code
dat <- read.dta13(system.file("extdata/statacar.dta", package="readstata13"))
get.label.tables(dat)

Run the code above in your browser using DataLab