mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: new string split function to allow splitting string into rows or columns. select from allowed delimiters.
This commit is contained in:
parent
59cefc55a3
commit
48f4d99429
5 changed files with 404 additions and 4 deletions
22
man/detect_delimiter.Rd
Normal file
22
man/detect_delimiter.Rd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/separate_string.R
|
||||
\name{detect_delimiter}
|
||||
\alias{detect_delimiter}
|
||||
\title{Detect delimiters in string based on allowed delimiters}
|
||||
\usage{
|
||||
detect_delimiter(data, delimiters = c("_", "-", ";", "\\n", ","))
|
||||
}
|
||||
\arguments{
|
||||
\item{delimiters}{allowed delimiters}
|
||||
|
||||
\item{text}{character vector}
|
||||
}
|
||||
\value{
|
||||
character vector
|
||||
}
|
||||
\description{
|
||||
Accepts any repeat of delimiters and includes surrounding whitespace
|
||||
}
|
||||
\examples{
|
||||
sapply(c("Walk - run", "Sel__Re", "what;now"), detect_delimiter)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue