Last chance! 50% off unlimited learning
Sale ends in
src_memdb
lets you easily access a sessio-temporary in-memory
SQLite database. memdb_frame()
works like data_frame
,
but instead of creating a new data frame in R, it creates a table in
src_memdb
src_memdb()memdb_frame(..., .name = random_table_name())
A set of name-value pairs. Arguments are evaluated sequentially, so you can refer to previously created variables.
Name of table in database: defaults to a random name that's unlikely to conflict with exist
if (require("RSQLite")) {
src_memdb()
df <- memdb_frame(x = runif(100), y = runif(100))
df %>% arrange(x)
df %>% arrange(x) %>% show_query()
}
Run the code above in your browser using DataLab