Learn R Programming

hero (version 0.6)

as.starray: Convert array to starray

Description

Convert a three-dimensional spatio-temporal array into an starray object. The first two dimensions are assumed to relate to gridded spatial positions.

Usage

as.starray(x)

starray(x)

as_starray(x)

Value

An starray object.

Arguments

x

A three-dimensional array

Examples

Run this code
star = as.starray(tasmax)
class(star)

Run the code above in your browser using DataLab