knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

Oarray

R-CMD-check

Package Oarray allows the user to define an arbitrary offset for arrays. By far the most common use-case is to specify zero offset in each dimension, but the package is user-configurable.

Installation

You can install the development version of Oarray from GitHub with:

# install.packages("Oarray")
pak::pak("RobinHankin/Oarray")

Example

This is a basic example which shows you how to solve a common problem:

library("Oarray")
A <- as.Oarray(array(1:24,2:4),offset=0)
A
A[0,0,0]
A[0, ,1] <- -99
A[ , ,1]


RobinHankin/Oarray documentation built on Sept. 23, 2024, 10:05 p.m.