I need to ask a question about RSQLite
but cannot share my database. How can I make a good reproducible SQLite database example within R?
Say a table of this shape:
df<-data.frame(
date=as.POSIXct(c("12/11/2019 12:00","12/11/2019 12:01","12/11/2019 12:01"),format="%d/%m/%Y %H:%M"),
category=c("Plant","Plant","Animal"),
value=c(1,2,3)
)
df
Which would look like:
> df
date category value
1 2019-11-12 12:00:00 Plant 1
2 2019-11-12 12:01:00 Plant 2
3 2019-11-12 12:01:00 Animal 3