mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@32f299880d 🚀
This commit is contained in:
parent
ed978f2ae9
commit
602d551a4a
179 changed files with 1527 additions and 705 deletions
28
reference/restore_labels.md
Normal file
28
reference/restore_labels.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Restore column labels using a reference data frame
|
||||
|
||||
Convenience wrapper around
|
||||
[`extract_labels()`](https://agdamsbo.github.io/FreesearchR/reference/extract_labels.md) +
|
||||
[`apply_labels()`](https://agdamsbo.github.io/FreesearchR/reference/apply_labels.md).
|
||||
Labels are matched by column name; new columns in `df_modified` are left
|
||||
unchanged.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue