surface2df: Cleanly convert a rasterLayer to dataframe format

View source: R/surface2df.R

surface2dfR Documentation

Cleanly convert a rasterLayer to dataframe format

Description

This function makes a clean convert of a rasterLayer to a 3-column dataframe. The first two columns will contain 'x' and 'y' coordinates, the third the rasterLayer 'value'. NA's are automatically removed.

Usage

surface2df(surface)

Arguments

surface

rasterLayer to be converted to a dataframe

Value

A 3-column dataframe with coordinates and value.


cjcampbell/SDMetrics documentation built on Oct. 2, 2022, 10:14 a.m.