View source: R/write_dataset_into_ssdb.R
write_dataset_into_ssdb | R Documentation |
Append "dataset" to a SumavaDB-like spatiotemporal database
write_dataset_into_ssdb( conn, dataset, append = TRUE, new = FALSE, sql_files = system.file("sql/create_or_replace_functions.sql", package = "SuSnowDB"), ... )
conn |
database (preferrably PodtgresSQL) connection. See ouput of |
dataset |
dataset . See output of |
append |
logical. If |
new |
logical. If |
sql_files |
file names containing database initialization SQL queries. They are used in case |
... |
further arguments. |
## Not run: library(RPostgreSQL) val <- sumava_snow_dataset() dbname = "hydroclimatedb_ver03" conn = dbConnect(PostgreSQL(), dbname = dbname) ## Create a new DB layout write_dataset_into_ssdb(conn,dataset=val,new=TRUE) dbDisconnect(conn) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.