Learn R Programming

startR (version 0.0.1)

indices: Mark Dimension Selectors as Indices

Description

Helper function intended for use in a call to the function Start in the package 'startR', to explicitly mark that a set of provided indices to subset one of the requested dimensions are actually indices and not values to be matched against a coordinate variable. See details in the documentation of the parameter … of the function Start().

Usage

indices(x)

Arguments

x

Numeric vector or list with two numeric elements.

Value

The same as the input, but with an additional attribute 'indices' with the value TRUE, marking the indices as numeric indices.

Examples

Run this code
# NOT RUN {
## Check https://earth.bsc.es/gitlab/es/startR for step-by-step examples 
## of Start() that use indices().
# }

Run the code above in your browser using DataLab