R/coercion.R

Defines functions as.data.frame.SQLiteDataset as.list.SQLiteDataset as.matrix.SQLiteDataset

Documented in as.data.frame.SQLiteDataset as.list.SQLiteDataset as.matrix.SQLiteDataset

# coercion methods for SQLiteDatatset objects

as.data.frame.SQLiteDataset <- function(x, row.names, optional, ...){
    x[]
}

as.list.SQLiteDataset <- function(x, ...) {
    as.list(as.data.frame(x))
}

as.matrix.SQLiteDataset <- function(x, ...) {
    as.matrix(as.data.frame(x))
}

Try the dfdb package in your browser

Any scripts or data that you put into this service are public.

dfdb documentation built on May 2, 2019, 4:58 p.m.