matrix_to_stars: Convert 'matrix' to 'stars'

Description Usage Arguments Value Examples

View source: R/matrix_to_stars.R

Description

Converts matrix to a single-band stars raster, conserving the matrix orientation where rows become the y-axis and columns become the y-axis. The bottom-left corner of the axis is set to (0,0) coordinate, so that x and y coordinates are positive across the raster extent.

Usage

1
matrix_to_stars(m, res = 1)

Arguments

m

A matrix

res

The cell size, default is 1

Value

A stars raster

Examples

1
2
3

starsExtra documentation built on Nov. 18, 2021, 5:08 p.m.