unit.length

0th

Percentile

Length of a Unit Object

The length of a unit object is defined as the number of unit values in the unit object.

This function has been deprecated in favour of a unit method for the generic length function.

Keywords
dplot
Usage
unit.length(unit)
Arguments
unit

A unit object.

Value

An integer value.

See Also

unit

Aliases
  • unit.length
Examples
library(grid) length(unit(1:3, "npc")) length(unit(1:3, "npc") + unit(1, "inches")) length(max(unit(1:3, "npc") + unit(1, "inches"))) length(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4) length(unit(1:3, "npc") + unit(1, "strwidth", "a")*4)
Documentation reproduced from package grid, version 3.4.1, License: Part of R 3.4.1

Community examples

Looks like there are no examples yet.