search for: simid

Displaying 1 result from an estimated 1 matches for "simid".

Did you mean: simd
2013 Jul 15
2
Serialize data.frame to database
...eliable database solution so I try to serialize a data.frame (to binary data) and to store this data to an SQLite database. This is what I tried to do: library(RSQLite) con <- dbDriver("SQLite") db <- dbConnect(con, "test") dbSendQuery(db, 'CREATE TABLE frames("simID" INT, "data" BLOB)') data.bin <- serialize(iris, NULL, ascii = FALSE) dbSendQuery(db, paste("INSERT INTO frames VALUES(1, X'", data.bin, "')", sep = "")) data.bin2 <- dbGetQuery(db, "SELECT DATA FROM frames WHERE simID = 1") d...