
Last chance! 50% off unlimited learning
Sale ends in
lbl_df
class
attribute. Printing a lbl_df
-data frame is comparable
to printing tibble
objects, but the class
information in the output is replaced by the variable label.
lbl_df(x)
x
, with lbl_df
class-attribute.
data(efc)
library(dplyr)
efc %>%
select(e15relat, e16sex, e17age) %>%
slice(1:3) %>%
lbl_df()
efc %>%
select(e15relat, e16sex, e17age) %>%
to_label() %>%
set_label(c("Relationship", "Elder's gender", "Elder's age")) %>%
lbl_df()
Run the code above in your browser using DataLab