unit.pmin | R Documentation |

Returns a unit object whose i'th value is the minimum (or maximum) of the i'th values of the arguments.

unit.pmin(...) unit.pmax(...) unit.psum(...)

`...` |
One or more unit objects. |

The length of the result is the maximum of the lengths of the arguments; shorter arguments are recycled in the usual manner.

A unit object.

Paul Murrell

max(unit(1:3, "cm"), unit(0.5, "npc")) unit.pmax(unit(1:3, "cm"), unit(0.5, "npc"))

What can we improve?

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.

Close