Learn R Programming

RArcInfo (version 0.3)

get.txtdata: Function for importing the contents of an TXT file into R

Description

This function reads and imports into R the contents of a file of annotations (TXT).

Usage

get.arcdata(datadir, coverage, filename="txt.adf")

Arguments

datadir
Directory under which all the coverages and a directory called 'info' are.
coverage
The name of the coverage we want to work with.
filename
The name of the file in the coverage directory that stores the data. By default, it is called 'txt.dat'.

Value

  • This function returns a list with two elements. The first one is a dataframe with the next columns:
  • TxtIDThis field identifies the anotation.
  • UserIDIdentifier defined by the user.
  • LevelI don't know what this exactly means. Please, help me to fix this.
  • NVerticesLineNumber of vertices pairs that are valid.
  • NVerticesArrowI don't know what this exactly means. Please, help me to fix this.
  • TextSome text related to the annotation.
  • The second element in the list is another list containing the vertices related the annotation. For each annotation there are two vectors, for the X and Y coordinates.

References

More information about this kind of data can be found at http://pages.infinit.net/danmo/e00/docs/v7_bin_cover.html.