varlabel: Get and assign Stata Variable Labels

Description Usage Arguments Value Author(s)

View source: R/tools.R

Description

Retrieve or set variable labels for a dataset.

Usage

1
2
3
varlabel(dat, var.name = NULL, lang = NA)

varlabel(dat) <- value

Arguments

dat

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

var.name

character vector. Variable names. If NULL, get label for all variables.

lang

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

value

character vector. Vector of variable names.

Value

Returns an named vector of variable labels

Author(s)

Jan Marvin Garbuszus [email protected]

Sebastian Jeworutzki [email protected]


readstata13 documentation built on May 29, 2017, 6:38 p.m.