ez.clattr: remove specified attributes

View source: R/frame.R

ez.clattrR Documentation

remove specified attributes

Description

remove specified attributes

Usage

ez.clattr(
  x,
  col = NULL,
  attrs = c("variable.labels", "label", "value.labels", "labels"),
  ...
)

Arguments

x

a data frame or a vector

col

evaluated by ez.selcol(x,col). Or, NULL=all cols.

attrs

variable label: c('variable.labels', 'label'); value labels: c('value.labels', 'labels'). run names(attributes(x)) to see all attributes

Value

returns a new data frame or vector

Note

this function uses a different mechanism from sjmisc_set_labels(x,"") which works only for value labels: haven style ("labels") or foreign style ("value.labels")


jerryzhujian9/ezmisc documentation built on March 9, 2024, 12:44 a.m.