mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-21 05:19:07 +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
26
reference/apply_labels.md
Normal file
26
reference/apply_labels.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Apply a named label vector to a data frame
|
||||
|
||||
Apply a named label vector to a data frame
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
apply_labels(df, labels)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- df:
|
||||
|
||||
A data frame.
|
||||
|
||||
- labels:
|
||||
|
||||
A named character vector (names = column names, values = labels).
|
||||
Typically the output of
|
||||
[`extract_labels()`](https://agdamsbo.github.io/FreesearchR/reference/extract_labels.md).
|
||||
Labels for absent columns are silently ignored.
|
||||
|
||||
## Value
|
||||
|
||||
`df` with `"label"` attributes set on matching columns.
|
||||
Loading…
Add table
Add a link
Reference in a new issue