Find the maximum and minimum number in R Programming Language

Find the maximum and minimum number in R Programming Language

x <- c(2 ,3 ,4 ,6,1)
min(x)
y <- c(78,34,5,67,41,33)
max(y)

Output:

$Rscript main.r
[1] 1
[1] 78

No Comments

Post a Reply