get | R Documentation |
Returns rows/columns selected by name in an array-like object.
get_columns(x, ...)
get_rows(x, ...)
## S4 method for signature 'ANY'
get_columns(x, select = NULL, names = NULL, ...)
## S4 method for signature 'ANY'
get_rows(x, select = NULL, names = NULL, ...)
x |
An R object (should be a |
... |
Further arguments to be passed to |
select |
A |
names |
A |
An object of the same sort as x
.
N. Frerebeau
Other data preparation tools:
append_column()
,
append_rownames()
,
assign()
,
compact()
,
count()
,
detect()
,
discard()
,
keep()
,
seek()
## Seek columns
seek_columns(iris, select = startsWith, prefix = "Petal")
seek_columns(iris, names = c("Petal.Length", "Petal.Width"))
## Get columns
x <- get_columns(iris, select = startsWith, prefix = "Petal")
head(x)
x <- get_columns(iris, names = c("Petal.Length", "Petal.Width"))
head(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.