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
25
reference/with_labels.md
Normal file
25
reference/with_labels.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Evaluate an expression while preserving column labels
|
||||
|
||||
Snapshots labels from `df` before evaluating `expr`, then reapplies them
|
||||
to matching columns in the result. New columns created inside `expr`
|
||||
receive no label automatically.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
with_labels(df, expr)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- df:
|
||||
|
||||
A data frame carrying `"label"` attributes.
|
||||
|
||||
- expr:
|
||||
|
||||
An unquoted expression that transforms `df` and returns a data frame.
|
||||
|
||||
## Value
|
||||
|
||||
The data frame produced by `expr`, with original labels restored.
|
||||
Loading…
Add table
Add a link
Reference in a new issue