The supplied data.frame object is (currently) limited to integer, numeric, or character columns.

fromDataFrame(obj, uri)

Arguments

obj

A data.frame object.

uri

A character variable with an Array URI.

Value

Null, invisibly.

Details

The create (Dense) Array will have as many attributes as there are columns in the data.frame. Each attribute will be a single column.

At present, factor variable are converted to character.

Examples

ctx <- tiledb_ctx(limitTileDBCores()) if (FALSE) { uri <- tempfile() ## turn factor into character irisdf <- within(iris, Species <- as.character(Species)) fromDataFrame(irisdf, uri) arr <- tiledb_dense(uri, as.data.frame=TRUE) newdf <- arr[] all.equal(iris, newdf) }