[R] Re: RArcInfo question(basic=T, newbie=T, annoying=T)

Virgilio Gómez Rubio Virgilio.Gomez at uv.es
Thu Nov 21 15:50:49 CET 2002


Dear Steve,

I'll post your question also to the R-help mailing list since I think
this can help to other RArcInfo users.

As I mentioned in the last release of the package, I have a tutorial
nearly finished. I hope to release it in the next days.

> I have downloaded an .e00 file of 2000 Census Tracts for the southern US
> State of Georgia, and I'm wondering which steps I need to go through to use
> RArcInfo on the data.  If I can get to a plot today I'll be happy.

I've looked for the data you mentioned and I have downlowaded from 
http://www.census.gov . It's a nice set of data. :D


Actually, the procedure is always the same. If you have an E00 file, you
fist must convert into a binary coverage (using 'eootoavc'), and then
read it with read.coverage or file by file.

I have downloaded a file called tr13_d00_e00.zip and unziped it. The
E00 file is tr13_d00.e00. Here you have an small example.

Please, notice that if your file is different, the steps to follow are
the same. The output messages will be a bit different, but that's
because I use a version which hass not been released yet, but don't
worry about it.

> library(RArcInfo)
> e00toavc("tr13_d00.e00", "tr13")
NULL
> d<-read.coverage("./", "tr13")
Number of ARCS:16723
Number of CENTROIDS:1625
Number of LABELS:1624
Number of POLYGONS:1625
Number of TOLERANCES:10
> attach(d)
> plotpal(arc, pal)

> newarc<-thinlines(arc,.05)
> plotpal(newarc, pal)
> get.tablenames("info/")
                         TableName InfoFile NFields RecSize NRecords
External
1 TR13.AAT                          ARC0001       1      38    16723    
TRUE
2 TR13.BND                          ARC0002       1      32        1   
FALSE
3 TR13.PAT                          ARC0003       1     178     1625   
FALSE
4 TR13.TIC                          ARC0004       1      20        4   
FALSE
> aat<-get.tabledata("info/", "TR13.AAT")
> names(aat)
[1] "FNODE#          " "TNODE#          " "LPOLY#          "
"RPOLY#          "
[5] "LENGTH          " "TR13#           " "TR13-ID         "
"JFID            "
> pat<-get.tabledata("info/", "TR13.PAT")
> names(pat)
 [1] "AREA            " "PERIMETER       " "TR13#           "
"TR13-ID         "
 [5] "STATE           " "COUNTY          " "TRACT           "
"NAME            "
 [9] "LSAD            " "LSAD_TRANS      "
>


Regards and thanks for using RArcInfo. PLease, let me know whether you
have any other question.

-- 
             Virgilio Gómez Rubio

Dpto. Estadística e I. O. - Facultat de Matemàtiques
Avda. Vicent A. Estellés, 1 - 46100 Burjassot
Valencia - SPAIN

http://matheron.uv.es/~virgil

TLF: 00 34 96 386 43 62 - FAX: 00 34 96 398 35 99


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list