ojo_tbl | R Documentation |
Identifies a table in the OJO database from which to query data. Remember to run connect_ojo()
to establish a connection before attempting to query and to close the connection afterwards with disconnect_ojo()
.
ojo_tbl(table, schema = "public", ..., .con = NULL, .source = "postgres")
A pointer to a table that can be passed to dplyr functions and/or pulled into a dataframe using ojo_collect()
ojo_list_tables(), ojo_list_vars(), ojo_list_schemas()
## Not run:
# Identifies the table
ojo_tbl("case")
# Pulls down case information data for every Tulsa felony filed in 2020 into a dataframe d
d <- ojo_tbl("case") %>%
filter(district == "TULSA", case_type == "CF", year == 2020) %>%
collect()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.