mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
6c44be558d
commit
912fff7474
32 changed files with 2340 additions and 273 deletions
24
man/grepl_fix.Rd
Normal file
24
man/grepl_fix.Rd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/wide2long.R
|
||||
\name{grepl_fix}
|
||||
\alias{grepl_fix}
|
||||
\title{Matches pattern to vector based on match type}
|
||||
\usage{
|
||||
grepl_fix(data, pattern, type = c("prefix", "infix", "suffix"))
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{vector}
|
||||
|
||||
\item{pattern}{pattern(s) to match. Character vector of length 1 or more.}
|
||||
|
||||
\item{type}{type of match. can be one of "prefix","infix" or "suffix".}
|
||||
}
|
||||
\value{
|
||||
logical vector
|
||||
}
|
||||
\description{
|
||||
Matches pattern to vector based on match type
|
||||
}
|
||||
\examples{
|
||||
c("id", "age", "weight_0", "weight_1") |> grepl_fix(pattern = c("_0", "_1"), type = "suffix")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue