On Saturday, July 21, 2012, olemissrebs1123 wrote:

> I am attempting to write what MATLAB does as : [S,A]= shaperead() which
> returns an N by 1 geographic array structure S containing geometric
> information, and a paralell N by 1 attribute structure array, A containing
> feature attribute information.
>
> How can this be done with R code I tried using shp<-readShapePoints() but
> this doesnt return the same structure that I am looking for.
>
>
> And for that some of us are truly grateful. This is R and things are
good, not everything is a matrix. How would you like it to be?

Try as.data.frame(shp) or coordinates(shp)

Please use R-Sig-Geo for this topic.

Cheers, Mike

Please Help.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Reading-Shapefiles-tp4637262.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org <javascript:;> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Michael Sumner
Hobart, Australia
e-mail: mdsumner@gmail.com

	[[alternative HTML version deleted]]

