官术网_书友最值得收藏!

Importing data into R from relational databases using the DBI R package

Database Independent Interface (DBI) makes connecting to and getting data from various relational databases from R very easy and efficient.

To use DBI, we load DBI first:

library(DBI)

We then create an in-memory RSQLite database:

con <- dbConnect(RSQLite::SQLite(), dbname = ":memory:")

We can print a list of tables as follows:

dbListTables(con)
主站蜘蛛池模板: 晋州市| 阿鲁科尔沁旗| 荥经县| 宜州市| 五寨县| 高陵县| 望奎县| 靖安县| 交城县| 内乡县| 永川市| 柯坪县| 昭通市| 宜君县| 宜阳县| 柳林县| 张家口市| 亳州市| 定陶县| 揭阳市| 荥经县| 嘉义市| 南丰县| 灌南县| 库尔勒市| 霞浦县| 海安县| 包头市| 中江县| 崇信县| 赤城县| 泽库县| 松阳县| 建瓯市| 万宁市| 南丰县| 清涧县| 略阳县| 永平县| 松原市| 长汀县|