Learn R Programming

FIESTAutils (version 1.3.1)

datExportData: Spatial - Exports a data frame object.

Description

Exports a data frame object to a specified output.

Usage

datExportData(
  dfobj,
  create_dsn = FALSE,
  index.unique = NULL,
  index = NULL,
  lowernames = FALSE,
  savedata_opts = savedata_options(),
  dbconn = NULL,
  dbconnopen = TRUE
)

Value

An sf spatial object is written to the out_dsn.

Arguments

dfobj

Data.frame class R object. Data frame object to export.

create_dsn

Boolean.

index.unique

String. Name of variable(s) in dfobj to make unique index.

index

String. Name of variable(s) in dfobj to make (non-unique) index.

lowernames

Logical. If TRUE, convert column names to lowercase before writing to output. dbconnopen Logical. If TRUE, keep database connection open.

savedata_opts

List. See help(savedata_options()) for a list of options.

dbconn

Open database connection.

dbconnopen

Logical. If TRUE, keep database connection open.

Author

Tracey S. Frescino

Details

Wrapper for sf::st_write function.