Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread Edzer Pebesma
On 03/18/2015 11:31 AM, PONS Frederic - CEREMA/DTerMed/DREC/SRILH wrote: Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success:

Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread Roger Bivand
On Wed, 18 Mar 2015, Edzer Pebesma wrote: On 03/18/2015 11:31 AM, PONS Frederic - CEREMA/DTerMed/DREC/SRILH wrote: Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success:

[R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread PONS Frederic - CEREMA/DTerMed/DREC/SRILH
Hi I try to change some coordinate in a vector read by readOGR Vecteur = readOGR(dsnlayer,layer=nomlayer) After some calculation, I try this without success: Vecteur[nbi,]@coords=cbind(ProfilProj[,1],ProfilProj[,2]) The error is: Erreur dans as.vector(data) : pas de méthode pour convertir

Re: [R-sig-Geo] How to change coordonnate in a vector spatiladataframe

2015-03-18 Thread PONS Frederic - CEREMA/DTerMed/DREC/SRILH
Thanks Vecteur@coords[nbi,]=cbind(ProfilProj[,1],ProfilProj[,2]) is what I want Fr�d�ric Le 18/03/2015 12:14, Roger Bivand (par Internet, d�p�t r-sig-geo-boun...@r-project.org) a �crit : On Wed, 18 Mar 2015, Edzer Pebesma wrote: On 03/18/2015 11:31 AM, PONS Frederic -