Skip to content
Prev 1050 / 1559 Next

dbWriteTable in RPostgreSQL can't handle date and timestamp data types.

2011/3/8 Peng Lian <januslian at 126.com>:
Since I can't find any documentation about this, can you show me some
sample code about specifying data types.

 Another feature we want is that we only want to specify the data type
for columns that we think the automatically mapping  implemented by
RPostgreSQL is not suitable to us.
For example, supporse we have a data frame with about 100 columns,
only a few of which are numeric numbers,such as col1/col2/col3, we
want the column types to be decimal(18,2), but not float8, users only
need to pass col1/col2/col3 to the function, and let RPostgreSQL
choose the data types for the rest of the columns.