get_where.tplyr_layer | R Documentation |
Set or return where binding for layer or table
## S3 method for class 'tplyr_layer'
get_where(obj)
## S3 method for class 'tplyr_layer'
set_where(obj, where)
get_where(obj)
## S3 method for class 'tplyr_table'
get_where(obj)
set_where(obj, where)
## S3 method for class 'tplyr_table'
set_where(obj, where)
set_pop_where(obj, where)
get_pop_where(obj)
obj |
A |
where |
An expression (i.e. syntax) to be used to subset the data. Supply as programming logic (i.e. x < 5 & y == 10) |
For where
, the where binding of the supplied object.
For set_where
, the modified object
# Load in pipe
library(magrittr)
iris$Species2 <- iris$Species
lay <- tplyr_table(iris, Species) %>%
group_count(Species) %>%
set_where(Petal.Length > 3) %>%
# Set logic for pop_data as well
set_pop_where(Petal.Length > 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.