filter_rows | R Documentation |
wrapper function around filtering data.table with given conditions with non-standard evaluation
filter_rows(dt, condition)
dt |
input |
condition |
a valid R conditional expression |
This function simply takes the input conditions
## Not run: filter_rows(data.table(mtcars),mpg > 20) # return all rows where mpg is > 20 filter_rows(data.table(mtcars), mpg > 20, vs = 1, am = 0) # return all rows where mpg is > 20, vs = 1, am = 0 wr.filter(data.table(mtcars), "mpg > 20") # error - conditions should not be parsed as characters ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.