units: Units attribute.

unitsR Documentation

Units attribute.

Description

Units attribute.

Usage

units(x)

units(x) <- value

has.units(x)

Arguments

x

An object.

value

A character specifying the units

Functions

  • units(x) <- value: Set units attribute.

  • has.units(): Check for attribute.

Examples

x <- 1:10
units(x) <- "cm"
has.units(x)
units(x)

table1 documentation built on Jan. 6, 2023, 5:07 p.m.