Learn R Programming

table1 (version 1.4.2)

units: 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<-: Set units attribute.

  • has.units: Check for attribute.

Examples

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

Run the code above in your browser using DataLab