read_raster: Read a raster

View source: R/io.R

read_rasterR Documentation

Read a raster

Description

Read a raster

Usage

read_raster(
  filename = system.file("exdata/predictors.tif", package = "calanusthreshold"),
  form = c("raster", "tibble", "sf")[1]
)

Arguments

filename

character, the name of the file to read

form

characater, one of 'raster', 'sf' or 'tibble'. If the latter then coordinate columns (x, y) followed by one column per variable.

Value

raster or tibble object


BigelowLab/calanusthreshold documentation built on May 12, 2022, 5:06 a.m.