filter | R Documentation |
Analogous function for filter
in dplyr.
filter(.data, ...)
.data |
data.frame |
... |
List of variables or name-value pairs of summary/modifications functions. |
Currently data.table is not able to delete rows by reference,
A data.table
https://github.com/Rdatatable/data.table/issues/635
https://stackoverflow.com/questions/10790204/how-to-delete-a-row-by-reference-in-data-table
filter
iris = as.data.table(iris)
iris %>% filter(Sepal.Length > 7)
iris %>% filter(Sepal.Length > 7,Sepal.Width > 3)
iris %>% filter(Sepal.Length > 7 & Sepal.Width > 3)
iris %>% filter(Sepal.Length == max(Sepal.Length))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.