sql_collect: Query and get data back into a data.frame

Description Usage Arguments Details Examples

Description

Query and get data back into a data.frame

Usage

1
sql_collect(src, query, ...)

Arguments

src

An src object, result of calling src_itis(), src_col(), or src_tpl()

query

A SQL query

...

further args passed on to dplyr::tbl()

Details

we run dplyr::tbl(), then dplyr::collect()

Examples

1
2
3
4
5
6
7
## Not run: 
src <- src_itis()
sql_collect(src, "select * from hierarchy limit 5")
## or pipe the src to sql_collect
src %>% sql_collect("select * from hierarchy limit 5")

## End(Not run)

taxizedb documentation built on May 2, 2019, 11:41 a.m.