R/rastertodf.R

Defines functions rastertodf

#' Convert objects from the raster package into a dataframe 
#'
#' @inrast = name of raster map to be converted into a data frame
#'
rastertodf<-function(inrast){
    tmpdf<-na.exclude(data.frame(coordinates(inrast),value=getValues(inrast)))
    return(tmpdf)
}
drmarcogir/marcoUtils documentation built on Sept. 11, 2019, 12:08 a.m.