powered by
Searches rows/columns by name in an array-like object.
seek_columns(x, ...)seek_rows(x, ...)# S4 method for data.frame seek_rows(x, select = NULL, ...)# S4 method for data.frame seek_columns(x, select = NULL, ...)
seek_rows(x, ...)
# S4 method for data.frame seek_rows(x, select = NULL, ...)
# S4 method for data.frame seek_columns(x, select = NULL, ...)
An integer vector or NULL.
integer
NULL
An R object (should be a matrix or a data.frame).
matrix
data.frame
Further arguments to be passed to select.
select
A function to be applied to the row/colum names (e.g. startsWith()). Must return a single integer or logical vector.
function
startsWith()
logical
N. Frerebeau
Other data preparation tools: append(), assign(), compact(), count(), detect(), discard(), get(), keep()
append()
assign()
compact()
count()
detect()
discard()
get()
keep()
## Seek columns seek_columns(iris, select = startsWith, prefix = "Sepal") ## Get columns x <- get_columns(iris, select = startsWith, prefix = "Sepal") head(x)
Run the code above in your browser using DataLab