unit.pmin

0th

Percentile

Parallel Unit Minima and Maxima

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

Keywords
dplot
Usage
unit.pmin(...)
unit.pmax(...)
Arguments

One or more unit objects.

Details

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

Value

A unit object.

Aliases
  • unit.pmin
  • unit.pmax
Examples
library(grid) max(unit(1:3, "cm"), unit(0.5, "npc")) unit.pmax(unit(1:3, "cm"), unit(0.5, "npc"))
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.