[R-sig-Geo] zero out the dataframe?

Michael Sumner mdsumner at gmail.com
Mon Apr 29 15:57:19 CEST 2013

as(x, "Spatial*") will do it

On Mon, Apr 29, 2013 at 10:55 PM, Philip A. Viton <viton.1 at osu.edu> wrote:
> Given a Spatial*DataFrame, is there some easy way to delete the
> dataframe objects, leaving only the Spatial* part? (I have a
> very large spatial dataframe, and I want to do come calculations that
> don't involve the data part; and I hope that this could
> speed things up). I tried setting the data slot to NULL, but
> apparently this isn't allowed.
> Thanks!
> ------------------------
> Philip A. Viton
> City Planning, Ohio State University
> 275 West Woodruff Avenue, Columbus OH 43210
> viton.1 at osu.edu
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

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

More information about the R-sig-Geo mailing list