[R-sig-Geo] transform spatial points into data.frame
Ken
katakagi at bu.edu
Wed Feb 1 14:45:56 CET 2012
Johannes Radinger <JRadinger <at> gmx.at> writes:
>
> Hello,
>
> probably this is a very simple task:
>
> How can I transform spatial points (assigned
coordinates with rgdal)
> into a ordinary data.frame
> where the first column is name of the point and the
second and third
> columns are
> X and Y?
>
> /johannes
>
Hi Johannes,
if it is a S3 or S4 object, you can try using the @ symbol:
sp.df = myspatialpts at data
where myspatialpts is the object containing your spatial
points.
HTH,
Ken
More information about the R-sig-Geo
mailing list