[R-sig-Geo] Changing coordinates in shapefile

Robert J. Hijmans r.hijmans at gmail.com
Mon Oct 6 14:31:08 CEST 2014


Leigh,
I am at loss by what you mean with "shapefile" in this context
(SpatalPolygons object? or raster data given your reference to
cells?), but raster::shift is probably the function you are looking
for.
Robert

On Sun, Oct 5, 2014 at 8:18 AM, 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



More information about the R-sig-Geo mailing list