[R-sig-Geo] Changing coordinates in shapefile

Juta Kawalerowicz juta.kawalerowicz at nuffield.ox.ac.uk
Mon Oct 6 12:12:30 CEST 2014


Leigh,

If you simply want to add 180 to each element in a vector try
new data<-sapply((your data), function(x) x+180)

Juta

On Sun, Oct 5, 2014 at 4:18 PM, Leigh Kroeger <leigh.kroeger at gmail.com>
wrote:

> Hello all,
>
> I have realised that the coordinates data in my shapefile is incorrect.
>
> It shows coordinates that are 180 degrees off. Put simply... -140 needs 180
> added to it in each cell in column 1 to read 40.
>
> I am at a loss to understand how to add 180 to each cell. Please advise.
>
> --
> *Leigh A. Kroeger*
> <*)))><
>
> *PhD Candidate - Marine Ecology*
> המחלקה למדעי החיים
> אוניברסיטת תל אביב
> Dept. of Zoology
> Tel Aviv University
> Tel Aviv, 69978
> Israel
> Tel: +03 640-7830
>
> http://belmaker.weebly.com/members.html
>
> http://www.linkedin.com/profile/view?id=144722403&trk=nav_responsive_tab_profile_pic
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list