Description Usage Arguments Details
Appends a data frame to an existing table in an SQLite database without row names. More importantly it saves the time zone for POSIXct columns in the metadata table and converts the column to a character vector of format 'YYYY-mm-dd HH:MM:SS'. It also saves the projection and converts the geometry column to a character vector for sfc columns. And saves any column comments to the DataDescription entry in the metadata table.
1 2 3 4 5 6 7 8 9 |
x |
The data frame. |
table_name |
A string of the name of the table. |
conn |
An SQLiteConnection object. |
delete |
A flag indicating whether to delete the existing data before appending the data. |
overwrite_units |
A flag indicating whether to overwrite existing units. |
overwrite_descriptions |
A flag indicating whether to overwrite existing descriptions. |
rename |
A function to rename column names in x. |
ps_read_table
looks up the time zone and projection and
converts the column back to a POSIXct vector with the original timezone
or sfc column with projection.
The function is also agnostic as to the order of the columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.