Learn R Programming

vegdata (version 0.9.12)

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

Description

Query and get data back into a data.frame

Usage

sql_collect(src, query, ...)

Arguments

src

(src) An `src` object, result of calling [src_germansl()], [src_eurosl()]

query

(character) A SQL query

...

further args passed on to [dplyr::tbl()]

Details

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

Examples

Run this code
if (FALSE) {
src <- src_germansl()
sql_collect(src, "select * from GermanSL limit 5")
## or pipe the src to sql_collect
src %>% sql_collect("select * from GermanSL limit 5")
}

Run the code above in your browser using DataLab