unit.length | R Documentation |
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.
unit.length(unit)
unit |
A unit object. |
An integer value.
Paul Murrell
unit
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.