Learn R Programming

RSurvey (version 0.7-4)

WriteFile: Write Data File

Description

Writes data to a file.

Usage

WriteFile(file.type = "text", file.name = NULL, col.ids = NULL,
          is.processed = TRUE, headers = c(FALSE, FALSE), 
          sep = "", is.compressed = FALSE, encoding = getOption("encoding"))

file.type{character; the output file type:
  either text for Text Files,
  shape for ESRI Shapefiles, or
  grid for Interpolated Grid Text Files.}
file.name{character; the name of the file which the data are to
  be written to.}
col.ids{character; a vector of strings identifying the variables to
  include in the exported data table.}
is.processed{logical; if TRUE, only include record numbers in
  the processed data table, see ProcessData;
  its default is TRUE.}
headers{logical; a vector of length 2 that indicates whether the
  data table contains header lines.}
sep{character; the field separator string.}
is.compressed{logical; if TRUE, the file will be compressed by
  http://www.gzip.org/{gzip}; its default is FALSE.}
encoding{character; encoding to be assumed for input strings. If the
  value is "latin1" or "UTF-8" it is used to mark character
  strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the
  input.}

[object Object]

write.table, writeOGR

data(project)
Data(replace.all = project)
WriteFile(file.type = "grid")

file

Arguments