Write a program to obtain the minimum between two corresponding elements of two vectors. As an example,

Question:

Write a program to obtain the minimum between two corresponding elements of two vectors. As an example, for the two vectors A=(1,2,3,4) and B=(4,3,2,1), your program should return the minimum as (1,2,2,1). Repeat the exercise to obtain the maximum. After you are done with your program, use the pmin and pmax functions available in R.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

A Course In Statistics With R

ISBN: 9781119152729

1st Edition

Authors: Prabhanjan N. Tattar, Suresh Ramaiah, B. G. Manjunath

Question Posted: