Learn R Programming

RSurvey (version 0.8-0)

ExportData: Export Data

Description

A GUI for exporting data to text files, shapefiles, or R data files.

Usage

ExportData(file.type = "txt", parent = NULL)

Arguments

file.type
character; the output file type: either txt for Text Files, rda for R Data Files, or shp for ESRI Shapefiles.
parent
tkwin; the GUI parent window.

Value

  • Saves the GUI options in the export component of Data. List components of export include:
  • processedlogical; are exported records limited to processed data?
  • fmtslogical; indicates whether a header line of conversion specification format strings is written (text only).
  • colslogical; indicates whether a header line of column names is written (text only).
  • rowslogical; indicates whether the row names are written (text only).
  • commentlogical; indicates whether to write comments using the comment character, com (text only).
  • sepcharacter; the field separator character (text only).
  • deccharacter; string used for decimal points (text only).
  • nascharacter; string interpreted as NA value (text only).
  • comcharacter; comment character (text only).
  • qmethodcharacter; a string specifying how to deal with embedded double quote characters when quoting strings (text only).
  • quotelogical; if TRUE, any character or factor columns will be surrounded by double quotes (text only).
  • encodingcharacter; declares the encoding to be used on the file (text only).
  • eolcharacter; the character to print at the end of each line (text only).
  • compressedlogical; indicate whether the file should be compressed using http://www.bzip.org/{bzip2} (text only).
  • changeloglogical; indicate if a separate text file should be written with the change log (text only).
  • asciilogical; if TRUE, an ASCII representation of the data is written (R data only).

See Also

write.table, save, writeOGR

Examples

Run this code
data(ex.project)
Data(replace.all = ex.project)
ExportData(file.type = "txt")

Run the code above in your browser using DataLab