如何在R上使用dplyr的“ src_sqlite”

时间:2019-11-12 11:19:31

标签: r dplyr

这是Carson Sievert撰写的名为“使用XML2R和pitchRx对PITCHf / x数据进行标定”的文章的引文:

library(dplyr)
my_db <- src_sqlite("GamedayDB.sqlite3", create = TRUE)
# Collect and store all PITCHf/x data from 2008 to 2013
scrape(start = "2008-01-01", end = "2014-01-01",
suffix = "inning/inning_all.xml", connect = my_db$con)

Source

但是,即使在安装了dplyr软件包之后,我也无法使用函数“ src_sqlite”,如它所说的

  

无法加载扩展程序

请告知我如何使上面的代码起作用。

0 个答案:

没有答案