projet <- function(data, proj4 = NULL, area = NULL){
require(sp)
options(warn = - 1)
xy <- data[c("Lon","Lat")]
data[c("LONGITUDE_M","LATITUDE_M")] <- coordinates(spTransform(SpatialPointsDataFrame(xy, data,
proj4string = CRS(proj4),
match.ID = TRUE),CRS(area)))
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.