raster_extract: Extracts values from a raster at Points

View source: R/raster_extract.R

raster_extractR Documentation

Extracts values from a raster at Points

Description

This is s quick convenience function that takes a 'data.frame' and a raster and returns the extracted values as a single column.

Usage

raster_extract(
  x,
  raster,
  Latitude = "Latitude",
  Longitude = "Longitude",
  CRS = 4326
)

Arguments

x

A data frame object.

raster

A raster from which you can extract the values

Latitude

The name of the column holding the latitude values (default = "Latitude")

Longitude

The name of the column holding the longitude (default = "Longitude")

CRS

The coordinate reference system (default = 4326)


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.