| Line 48... |
Line 48... |
| 48 |
(or character string for \code{fixed = TRUE}) to be matched
|
48 |
(or character string for \code{fixed = TRUE}) to be matched
|
| 49 |
in the given character vector. Coerced by
|
49 |
in the given character vector. Coerced by
|
| 50 |
\code{\link{as.character}} to a character string if possible. If a
|
50 |
\code{\link{as.character}} to a character string if possible. If a
|
| 51 |
character vector of length 2 or more is supplied, the first element
|
51 |
character vector of length 2 or more is supplied, the first element
|
| 52 |
is used with a warning. Missing values are allowed except for
|
52 |
is used with a warning. Missing values are allowed except for
|
| 53 |
\code{regexpr} and \code{gregexpr}.}
|
53 |
\code{regexpr}, \code{gregexpr} and \code{regexec}.}
|
| 54 |
\item{x, text}{a character vector where matches are sought, or an
|
54 |
\item{x, text}{a character vector where matches are sought, or an
|
| 55 |
object which can be coerced by \code{as.character} to a character
|
55 |
object which can be coerced by \code{as.character} to a character
|
| 56 |
vector. \link{Long vectors} are supported.}
|
56 |
vector. \link{Long vectors} are supported.}
|
| 57 |
\item{ignore.case}{if \code{FALSE}, the pattern matching is \emph{case
|
57 |
\item{ignore.case}{if \code{FALSE}, the pattern matching is \emph{case
|
| 58 |
sensitive} and if \code{TRUE}, case is ignored during matching.}
|
58 |
sensitive} and if \code{TRUE}, case is ignored during matching.}
|
| Line 102... |
Line 102... |
| 102 |
|
102 |
|
| 103 |
For \code{regexpr}, \code{gregexpr} and \code{regexec} it is an error
|
103 |
For \code{regexpr}, \code{gregexpr} and \code{regexec} it is an error
|
| 104 |
for \code{pattern} to be \code{NA}, otherwise \code{NA} is permitted
|
104 |
for \code{pattern} to be \code{NA}, otherwise \code{NA} is permitted
|
| 105 |
and gives an \code{NA} match.
|
105 |
and gives an \code{NA} match.
|
| 106 |
|
106 |
|
| - |
|
107 |
Both \code{grep} and \code{grepl} take missing values in \code{x} as
|
| - |
|
108 |
not matching a non-missing \code{pattern}.
|
| - |
|
109 |
|
| 107 |
The main effect of \code{useBytes} is to avoid errors/warnings about
|
110 |
The main effect of \code{useBytes} is to avoid errors/warnings about
|
| 108 |
invalid inputs and spurious matches in multibyte locales, but for
|
111 |
invalid inputs and spurious matches in multibyte locales, but for
|
| 109 |
\code{regexpr} it changes the interpretation of the output.
|
112 |
\code{regexpr} it changes the interpretation of the output.
|
| 110 |
It inhibits the conversion of inputs with marked encodings, and is
|
113 |
It inhibits the conversion of inputs with marked encodings, and is
|
| 111 |
forced if any input is found which is marked as \code{"bytes"}
|
114 |
forced if any input is found which is marked as \code{"bytes"}
|