mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 05:07:30 +02:00
three new functions and new version
This commit is contained in:
parent
ee396fb811
commit
8bd4d9ade7
11 changed files with 415 additions and 49 deletions
30
man/strsplitx.Rd
Normal file
30
man/strsplitx.Rd
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/utils.r
|
||||
\name{strsplitx}
|
||||
\alias{strsplitx}
|
||||
\title{Extended string splitting}
|
||||
\usage{
|
||||
strsplitx(x, split, type = "classic", perl = FALSE, ...)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{data}
|
||||
|
||||
\item{split}{delimiter}
|
||||
|
||||
\item{type}{Split type. Can be c("classic", "before", "after", "around")}
|
||||
|
||||
\item{perl}{perl param from strsplit()}
|
||||
|
||||
\item{...}{additional parameters are passed to base strsplit handling splits}
|
||||
}
|
||||
\value{
|
||||
list
|
||||
}
|
||||
\description{
|
||||
Can be used as a substitute of the base function. Main claim to fame is
|
||||
easing the split around the defined delimiter, see example.
|
||||
}
|
||||
\examples{
|
||||
test <- c("12 months follow-up", "3 steps", "mRS 6 weeks", "Counting to 231 now")
|
||||
strsplitx(test,"[0-9]",type="around")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue