Skip to content
Prev 9646 / 29559 Next

GRASS vector attribute table read into R

On Mon, 18 Oct 2010, stephen sefick wrote:

            
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