bgschol_tbl: Access a single table with dpylr

Description Usage Arguments See Also Examples

View source: R/tables.R

Description

dplyr interface treats tables as if they are in-memory data frames. This enables accessing big scholarly dataset without SQL.

Usage

1

Arguments

con

bgschol_con() object

table

Database table

See Also

Other tables: bgschol_execute(), bgschol_list(), bgschol_query()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
my_con <- bqschol::bgschol_con()
cr_instant_df <- bgschol_tbl(my_con, table = "snapshot")
cr_instant_df %>%
    #top publishers
    dplyr::group_by(publisher) %>%
    dplyr::summarise(n = dplyr::n_distinct(doi)) %>%
    dplyr::arrange(desc(n)) %>%
    # Compute query and download to local session
    dplyr::collect()
   
## End(Not run)

subugoe/bqschol documentation built on Dec. 23, 2021, 6:40 a.m.