R-sig-geo'ers:

I assume this is probably something really obvious I'm missing, but how do
I replace existing coordinates of a Spatial* object with new ones?
 coordinates(myspatial) = ~newx+newy is giving me an error like:

> class(Spatial)

[1] "SpatialPointsDataFrame"

attr(,"package")

[1] "sp"

> coordinates(Spatial)=~(mean(new_bbox[1,]))+(mean(new_bbox[2,]))

Error in `coordinates<-`(`*tmp*`, value = ~(mean(new_bbox[1, ])) +
(mean(new_bbox[2,  :

  setting coordinates cannot be done on Spatial objects, where they have
already been set


--j


-- 
Jonathan A. Greenberg, PhD
Assistant Professor
Department of Geography
University of Illinois at Urbana-Champaign
607 South Mathews Avenue, MC 150
Urbana, IL 61801
Phone: 415-763-5476
AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307, Skype: jgrn3007
http://www.geog.illinois.edu/people/JonathanGreenberg.html

	[[alternative HTML version deleted]]

