Description Usage Arguments Value Author(s) See Also Examples
Methods to coercise a SQLiteDataset object to a data frame, list, or matrix.
1 2 3 4 5 6 |
x |
an SQLiteDataset object. |
row.names |
not used. |
optional |
not used. |
... |
not used. |
a data frame, list, or matrix containing the entire data set.
John Fox, jfor@mcmaster.ca.
SQLiteDataset
, as.data.frame
, as.list
, as.matrix
1 2 3 4 5 6 7 8 9 10 | dr <- dbDriver("SQLite")
tfile <- tempfile()
con <- dbConnect(dr, dbname = tfile)
dbWriteTable(con, "USArrests", USArrests)
dbDisconnect(con)
Arrests <- SQLiteDataset("USArrests", database=tfile)
as.data.frame(Arrests)
as.list(Arrests)
as.matrix(Arrests)
close(Arrests)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.