Description Usage Arguments Details Value Author(s) See Also Examples
Search for pattern
in a column
of a matrix or
data.frame using grep
. If value
= TRUE (the
default), return the selected subset of x
.
1 2 3 |
x |
a matrix or data.frame containing a column named |
pattern, ignore.case, perl, fixed, useBytes, invert |
as for |
column |
character string giving the column of |
value |
logical: If TRUE, return the selected subset of |
1. g <- grep(pattern, x[, column])
2. if(value)return(x[g, ]) else return(g)
If(value) return an object of the same class as x
containing
those rows of x
with x[, column]
matching
pattern
.
Else, return an integer vector identifying the rows of x
with
x[, column]
matching pattern
.
Spencer Graves, Sundar Dorai-Raj
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.