sjmisc_set_label: sjmisc 1.8 hack

sjmisc_set_labelR Documentation

sjmisc 1.8 hack

Description

sjmisc 1.8 hack, variable labels

Usage

sjmisc_set_label(x, lab, attr.string = NULL)

Arguments

x

var or df

lab

if x is var, single vector; if x is df, vector of the same length as ncol(df). If "" or NULL, essentially clear label attribute

Value

returns a new changed x

Note

if no exisiting attr, using haven style: label


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.