get.label.name: Get Names of Stata Label Set

Description Usage Arguments Details Value Author(s)

View source: R/tools.R

Description

Retrieves the Stata label set in the dataset for all or an vector of variable names.

Usage

1
get.label.name(dat, var.name = NULL, lang = NA)

Arguments

dat

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

var.name

character vector. Variable names. If NULL, get names of all label sets.

lang

character. Label language. Default language defined by get.lang is used if NA

Details

Stata stores factor labels in variable independent labels sets. This function retrieves the name of the label set for a variable.

Value

Returns an named vector of variable labels

Author(s)

Jan Marvin Garbuszus [email protected]

Sebastian Jeworutzki [email protected]


sjewo/readstata13 documentation built on Aug. 15, 2019, 4:12 a.m.