Extract and Assignement Methods
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
library(RSQLite)
data(iris)
tmpdb <- tempfile()
drv <- dbDriver("SQLite")
con <- dbConnect(drv, tmpdb)
## No tables currently defined
dbListTables(con)
## Create table iris
con[["iris"]] <- iris
dbListTables(con)
## Read table
con[["iris"]]
## Delete Table
con[["iris"]] <- NULL
dbListTables(con)
## $ can also be used to read/write/delete tables
con$iris <- iris
con$iris
con$iris <- NULL
dbListTables(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.