Description Usage Arguments Examples
Select rows in a dataframe.
1 |
dataframe |
a data.frame |
rows |
an atomic vector or function. Drop all but these rows.
If |
whole |
a logical. See the |
... |
additional arguments to |
1 2 3 4 5 6 7 | ## Not run:
select_rows()$run(iris, 1:10) # Select only first ten rows
select_rows()$run(iris, c(TRUE,FALSE)) # Select only odd rows
iris2 <- iris; rownames(iris2) <- paste0("row", 1:nrow(iris2))
select_rows()$run(iris, c("row10", "row51")) # Select rows by name
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.