Re: [R] Help with Centroids

2018-11-14 Thread Robert David Burbidge via R-help
# construct the dataframe `TK-QUADRANT` <- c(9161,9162,9163,9164,10152,10154,10161,10163) LAT <- c(55.07496,55.07496,55.02495,55.02496,54.97496,54.92495,54.97496,54.92496) LON <- c(8.37477,8.458109,8.37477,8.45811,8.291435,8.291437,8.374774,8.374774) df <- data.frame(`TK-QUADRANT`=`TK-QUADRANT`,L

Re: [R] Help with Centroids

2018-11-13 Thread Robert David Burbidge via R-help
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

[R] Help with Centroids

2018-11-13 Thread sasa kosanic
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 ta