normalize_2d: Normalize a 2D 'stars' object

View source: R/st_normalize_2d.R

normalize_2dR Documentation

Normalize a 2D 'stars' object

Description

Check, and possibly correct, that the input stars object:

  • Has exactly one attribute.

  • Has exactly two dimensions.

  • The dimensions are spatial, named x and y (in that order).

Usage

normalize_2d(x)

Arguments

x

A stars object

Value

A new stars object

Examples

# Small example
data(dem)
normalize_2d(dem)

starsExtra documentation built on May 29, 2024, 12:05 p.m.