mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
658 B
658 B
Restore column labels using a reference data frame
Convenience wrapper around
extract_labels() +
apply_labels().
Labels are matched by column name; new columns in df_modified are left
unchanged.
Usage
restore_labels(df_modified, df_reference)
Arguments
-
df_modified:
A data frame whose columns should receive labels.
-
df_reference:
A data frame carrying the authoritative
"label"attributes.
Value
df_modified with labels restored on all columns present in
df_reference.