mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
34
reference/pipe_string.md
Normal file
34
reference/pipe_string.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Reduce character vector with the native pipe operator or character string
|
||||
|
||||
Reduce character vector with the native pipe operator or character
|
||||
string
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
pipe_string(data, collapse = "|>\n")
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
list
|
||||
|
||||
## Value
|
||||
|
||||
character string
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
list(
|
||||
"mtcars",
|
||||
rlang::call2(.fn = "select", !!!list(c("cyl", "disp")), .ns = "dplyr"),
|
||||
rlang::call2(.fn = "default_parsing", .ns = "FreesearchR")
|
||||
) |>
|
||||
lapply(expression_string) |>
|
||||
pipe_string() |>
|
||||
expression_string("data<-")
|
||||
#> [1] "data<-mtcars|>\ndplyr::select(c('cyl','disp'))|>\nFreesearchR::default_parsing()"
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue