mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@8c7fafe51c 🚀
This commit is contained in:
parent
6d545337de
commit
131294f901
166 changed files with 964 additions and 379 deletions
31
reference/collapse_spaces.md
Normal file
31
reference/collapse_spaces.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Substitue spaces/tabs with single space excluding text within quotes
|
||||
|
||||
Written assisted by Claude.ai. It is long and possibly too complicated,
|
||||
but it works
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
collapse_spaces(x, preserve_newlines = TRUE)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- x:
|
||||
|
||||
character string
|
||||
|
||||
- preserve_newlines:
|
||||
|
||||
flag to preserve new lines
|
||||
|
||||
## Value
|
||||
|
||||
character string
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
collapse_spaces(c("cyl", "di sp","s e d","d e'dl e'"))
|
||||
#> Error in collapse_spaces(c("cyl", "di sp", "s e d", "d e'dl e'")): could not find function "collapse_spaces"
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue