Learn R Programming

RSurvey (version 0.9.3)

ExportData: GUI: Export Data

Description

A graphical user interface (GUI) for exporting data to text files, shapefiles, or R data files.

Usage

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

Arguments

file.type

character. Output file type: either txt for text files, rda for R-data files, or shp for shapefiles.

parent

tkwin. GUI parent window

Value

Saves the GUI options in the export component of Data. List components of export include:

processed

indicates whether exported data are limited to processed records.

fmts

indicates whether a header line of conversion specification format strings is written (text only).

cols

indicates whether a header line of column names is written (text only).

rows

indicates whether the row names are written (text only).

comment

indicates whether to write comments using the comment character, com (text only).

sep

field separator character (text only).

dec

string used for decimal points (text only).

nas

string interpreted as NA value (text only).

com

comment character (text only).

qmethod

a string specifying how to deal with embedded double quote characters when quoting strings (text only).

quote

if true, any character or factor columns will be surrounded by double quotes (text only).

encoding

declares the encoding to be used on the file (text only).

eol

the character to print at the end of each line (text only).

zip

indicate whether the file should be compressed using gzip, bzip2, or xz (text only).

changelog

indicate if a separate text file should be written with the change log (text only).

ascii

if true, an ASCII representation of the data is written (R data only).

See Also

write.table, save, writeOGR

Examples

Run this code
# NOT RUN {
  Data(replace.all = obj)
  ExportData(file.type = "txt")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab