Learn R Programming

via (version 0.2.0)

Virtual Arrays

Description

The base class 'VirtualArray' is defined, which acts as a wrapper around lists allowing users to fold arbitrary sequential data into n-dimensional, R-style virtual arrays. The derived 'XArray' class is defined to be used for homogeneous lists that contain a single class of objects. The 'RasterArray' and 'SfArray' classes enable the use of stacked spatial data instead of lists.

Copy Link

Version

Install

install.packages('via')

Monthly Downloads

209

Version

0.2.0

License

CC BY 4.0

Maintainer

Adam Kocsis

Last Published

May 16th, 2023

Functions in via (0.2.0)

colnames,VirtualArray-method

Column names of two-dimensional 'VirtualArray'-derived class object.
RasterArray-class

Array of 'SpatRaster'-class objects
SfcArray-class

Array of 'sf'-derived class data
[[<-,VirtualArray,ANY-method

Replace elements of 'VirtualArray'-class objects.
crop

Cropping a 'RasterArray'-class object
c,VirtualArray-method

Combine a one-dimensional 'VirtualArray'-class object with other objects
exemplar

Example 'XArray'-class object
disagg

Disaggregate raster cells in a 'RasterArray'-class object
dimnames,VirtualArray-method

Names of a multidimensional 'VirtualArray'-derived class object.
layers

Names of layers in the stack of a 'VirtualArray'-class object
names,VirtualArray-method

Names of one-dimensional 'VirtualArray'-derived class objects.
dim,VirtualArray-method

Dimensions of 'VirtualArray'-derived class objects
ncell

Number of cells in a 'RasterArray'-class object
newbounds

Redefine bounds of a named matrix
dimlayer

Dimensions of layers in a 'VirtualArray'-class object
resample

Resampling a 'RasterArray'-class object
is.na.RasterArray

Positions of missing values in a 'RasterArray'-class object
ext

Extent of a 'RasterArray'-class object
paleocoastlines

PaleoMAP PaleoCoastlines (excerpt)
st_bbox

Bounding box of an 'SfArray'-class object
rownames,VirtualArray-method

Row names of two-dimensional 'VirtualArray'-derived class objects.
nums

Names as numerics
subset,VirtualArray-method

Subset a 'VirtualArray'-class object
nvalues

The total number of values in a 'RasterArray'-class object
t,VirtualArray-method

Transpose a 'VirtualArray'-class object
rastex

Procedural example structure to demonstrate the capabilities of the 'RasterArray' class
[<-,VirtualArray,ANY,ANY,logical-method

Replace layers in an object that is of a class derived from 'VirtualArray'.
proxy

The proxy of an from a class derived from 'VirtualArray'
xres

Resolution of a 'RasterArray'-class object
project

Project a 'RasterArray'-class object
st_crs

Coordinate reference system of an 'SfArray'-class object
via

Virtual Arrays
st_transform

Projection change of an 'SfArray'-class object
rotate

Rotate a 'RasterArray'-class object
aggregate

Aggregate raster cells in a 'RasterArray'-class object
nlayers

Number of elements or layers in a 'VirtualArray'-derived class object
XArray-class

Virtual array of general R objects
[[,VirtualArray,ANY,ANY-method

Indexing to extract the elements of a 'VirtualArray'-derived class object.
[,VirtualArray,ANY,ANY-method

Indexing to extract subsets of a 'codeVirtualArray'-class object
ncol,VirtualArray-method

Number of columns and rows of a 'VirtualArray'-derived class object.
as.XArray

Coerce into an SfcArray or SfArray object