** pmin()** function in R Language is used to return the parallel minima of the input vectors.

Syntax:pmin(x1, x2)

Parameters:

x1:vector one

x2:vector two

**Example 1:**

`# R program to illustrate ` `# pmin() function ` ` ` `# First example vector ` `x1 <` `-` `c(` `2` `, ` `9` `, ` `5` `, ` `7` `, ` `1` `, ` `8` `) ` ` ` `# Second example vector ` `x2 <` `-` `c(` `0` `, ` `7` `, ` `2` `, ` `3` `, ` `9` `, ` `6` `) ` ` ` `# Application of pmin() in R ` `pmin(x1, x2) ` |

*chevron_right*

*filter_none*

**Output:**

[1] 0 7 2 3 1 6

#### pmax() Function

** pmax()** function returns the parallel maxima of two or more input vectors.

Syntax:pmax(x1, x2)

Parameters:

x1:vector one

x2:vector two

**Example :**

`# R program to illustrate ` `# pmax() function ` ` ` `# First example vector ` `x1 <` `-` `c(` `2` `, ` `9` `, ` `5` `, ` `7` `, ` `1` `, ` `8` `) ` ` ` `# Second example vector ` `x2 <` `-` `c(` `0` `, ` `7` `, ` `2` `, ` `3` `, ` `9` `, ` `6` `) ` ` ` `# Application of pmax() in R ` `pmax(x1, x2) ` |

*chevron_right*

*filter_none*

**Output:**

[1] 2 9 5 7 9 8

## Recommended Posts:

- Compute the Covariance between Two Vectors in R Programming - cov() Function
- Compute the Correlation Coefficient Value between Two Vectors in R Programming - cor() Function
- Compute the beta value of Non-Negative Numeric Vectors in R Programming - beta() Function
- Calculate the Cumulative Maxima of a Vector in R Programming - cummax() Function
- Calculate the Cumulative Minima of a Vector in R Programming - cummin() Function
- Compute Beta Distribution in R Programming - dbeta(), pbeta(), qbeta(), and rbeta() Functions
- Find positions of Matching Elements between Vectors in R Programming - match() Function
- Getting and Setting Length of the Vectors in R Programming - length() Function
- Create a Data Frame of all the Combinations of Vectors passed as Argument in R Programming - expand.grid() Function
- Creating a Data Frame from Vectors in R Programming
- Generating sequenced Vectors in R Programming - sequence() Function
- Generate Color Vectors of desired Length in R Programming - rainbow() Function
- Assigning Vectors in R Programming
- Types of Vectors in R Programming
- Append Operation on Vectors in R Programming
- Dot Product of Vectors in R Programming
- Cross Product of Vectors in R Programming
- Random Forest with Parallel Computing in R Programming
- Compute Variance and Standard Deviation of a value in R Programming - var() and sd() Function
- Compute Derivative of an Expression in R Programming - deriv() and D() Function

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.