Description Usage Arguments Examples
Setzen des attr(data, "label")
delet_labels: Loeschen aller Attributs label
set_label: Setzen der Attributs label
get_label und GetLabelOrName: Abrufen der Attributs label
wrap_label kuerzt die Labels fur Grafiken.
Intern wenn mit get_label nur die Kopie wiederhergestellt wird.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
data.frame |
... |
Labels in der Form a="Hallo, b="Welt" |
labels |
labels als named vector |
include.units |
Einheiten |
x |
data.frame or string |
width |
laenge 20 |
sep |
default newline |
pattern, replacement |
an gsub |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | df <- data.frame(
BMI=c(1,2,3,1,2,3),
WHtR= gl(2,3, labels =c("Amy", "Bob")),
WHtR_1=c(9,7,6,8,6,9),
bildprof=c(6,7,8,5,6,7)
)
DF<-
Label(df, BMI = "Body-Mass-Index",
WHtR = "Waist-Height-Ratio",
WHtR_1 ="Waist-Height-Ratio"
)
DF$BMI<- units::set_units(DF$BMI, kg/m2)
get_label(DF)
get_label(DF, include.units=TRUE)
DF<- set_label(DF, c(bildprof = "Bildungsprofil"))
get_label(DF)
DF<- delet_labels(DF)
get_label(DF)
DF<- wrap_label(DF)
get_label(DF)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.