make_rast

make_rast(
  range = c(-180, 180, -90, 90),
  cellsize = 1,
  nlyrs = 1,
  vals = NULL,
  ...
)

Arguments

range

A numeric vector, [lon_min, lon_max, lat_min, lat_max]

cellsize

Numeric vector, grid cell size [cellsize_lon, cellsize_lat].

nlyrs

positive integer. Number of layers

...

other parameters to terra::rast(), e.g., names, vals.

See also