matrixOps.units: S3 matrixOps Group Generic Functions for units objects

View source: R/arith.R

matrixOps.unitsR Documentation

S3 matrixOps Group Generic Functions for units objects

Description

matrixOps functions for units objects.

Usage

## S3 method for class 'units'
matrixOps(x, y)

Arguments

x

object of class units, or something that can be coerced to it by as_units(x)

y

object of class units, or something that can be coerced to it by as_units(y)

Value

object of class units

Examples

a = set_units(1:5, m)
a %*% a
a %*% t(a)
a %*% 1:5
1:5 %*% a

units documentation built on Nov. 5, 2025, 5:33 p.m.