get {arkhe} | R Documentation |
Get Rows/Columns by Name
Description
Returns rows/columns selected by name in an array-like object.
Usage
get_columns(x, ...)
get_rows(x, ...)
## S4 method for signature 'data.frame'
get_columns(x, select = NULL, ...)
## S4 method for signature 'data.frame'
get_rows(x, select = NULL, ...)
Arguments
x |
An R object (should be a |
... |
Further arguments to be passed to |
select |
A |
Value
An object of the same sort as x
.
Author(s)
N. Frerebeau
See Also
Other data preparation tools:
append()
,
assign()
,
compact()
,
count()
,
detect()
,
discard()
,
keep()
,
seek()
Examples
## Seek columns
seek_columns(iris, select = startsWith, prefix = "Sepal")
## Get columns
x <- get_columns(iris, select = startsWith, prefix = "Sepal")
head(x)
[Package arkhe version 1.7.0 Index]