Learn R Programming

starsExtra (version 0.1.2)

normalize_2d: 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

Run this code
# NOT RUN {
# Small example
data(dem)
normalize_2d(dem)
# }

Run the code above in your browser using DataLab