Hi Sasha,

Your attached table did not come through, please see the posting guidelines:
"No binary attachments except for PS, PDF, and some image and archive formats (others are automatically stripped off because they can contain malicious software). Files in other formats and larger ones should rather be put on the web and have only their URLs posted. This way a reader has the option to download them or not."
https://www.r-project.org/posting-guide.html

It is not clear what you are trying to do. As a first step it looks like you want something like:
>>>>>>>>>>>>>>>>
lat <- c(9161,9162,9163,9164,10152,10154)
floor(lat/10)*10
<<<<<<<<<<<<<<<<

Please provide further details on what you are trying to do.

Rgds,

Robert


On 13/11/2018 09:51, sasa kosanic wrote:
Dear All, I am pretty new to R and would appreciate a help how to calculate centroids from the latitude and longitude of existing cells (e.g. to get centroid for a new cell I would need to combine latitude and 9161,9162,9163,9164 to 9160 or 10152, 10154 to 10150 etc.) Please see attached table. Thank you very much! Best, Sasha

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to