Learn R Programming

hypsoLoop (version 0.2.0)

raster_conversion: Convert the input raster object into terra's SpatRaster object

Description

This function tests whether the supplied vector input is a simple features (sf) object, if not, the object is converted using the st_as-sf() function.

Usage

raster_conversion(y)

Arguments

y

The input provided by the user for the y argument.

Value

the converted SpatRaster object