ROMDB (version 0.1.0)

item_to_database: Item to Database

Description

This function stores an item into a database table.

Usage

item_to_database(con, item, dbtable, rownames = F, colnames = F,
  append = T)

Arguments

con

Conecction to some database made with the RODBC package or some other.

item

Tibble returned for some of the functions of the ROMDB package.

dbtable

Name of the database table to insert the results.

rownames

either logical or character. If logical, save the row names as the first column rownames in the table? If character, the column name under which to save the rownames. Default: FALSE

colnames

logical: save column names as the first row of table? Default: FALSE

append

logical. Should data be appended to an existing table? Default: TRUE

Examples

Run this code
# NOT RUN {
item_to_database(con, tibble_df, 'M_SQL_TABLE')
# }

Run the code above in your browser using DataLab