R/makeSpatialDF.R

Defines functions makeSpatialDF

Documented in makeSpatialDF

#'Make a spatialpointsdataframe
#'@title Create a SpatialPointDataFrmae
#'@param df a dataframe with X and Y as coordinates
#'@param projection the projection to add to the dataframe
#'@export
makeSpatialDF <- function(df,projection){
  coordinates(df)<-~X+Y
  proj4string(df)<-pro
  df
}
KNMI-DataLab/SkyViewFactor documentation built on May 30, 2019, 8 a.m.