mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: change to custom function for modifying factors
This commit is contained in:
parent
d0d4e950d1
commit
987069dd90
5 changed files with 188 additions and 14 deletions
23
man/collapse_spaces.Rd
Normal file
23
man/collapse_spaces.Rd
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/helpers.R
|
||||
\name{collapse_spaces}
|
||||
\alias{collapse_spaces}
|
||||
\title{Substitue spaces/tabs with single space excluding text within quotes}
|
||||
\usage{
|
||||
collapse_spaces(x, preserve_newlines = TRUE)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{character string}
|
||||
|
||||
\item{preserve_newlines}{flag to preserve new lines}
|
||||
}
|
||||
\value{
|
||||
character string
|
||||
}
|
||||
\description{
|
||||
Written assisted by Claude.ai. It is long and possibly too complicated,
|
||||
but it works
|
||||
}
|
||||
\examples{
|
||||
collapse_spaces(c("cyl", "di sp","s e d","d e'dl e'"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue