On Mon, 18 Oct 2010, stephen sefick wrote:
I would like to just read in a vector table that is stored in the
GRASS dbf format into R. ?Is there a way that I am over looking with
the spgrass6 package? ?I can just go to the dbf file of the grass
mapset, but I was looking for a better option. ?Thanks in advance.
kindest regards,
Stephen,
Do you mean read the GRASS vector, or just the DBF file? If the vector with
its attributes, readVECT6() in spgrass6, which I think you know of.
Otherwise, perhaps:
zz <- execGRASS("db.select", parameters=list(table="newbugs"),
?intern=TRUE)
con <- textConnection(zz)
zzz <- read.table(con, header=TRUE, sep="|")
close(con)
Hope this helps,
Roger