Question: Correct the following code: a.Vector1

Correct the following code:

a.Vector1 <- (1,2,3,4)

b.if(x<10){print("x is less than 10")} else{print("x is more than 10")}

c. x <- c(1,2,3) if(x<=2){x}else{x+5}

d.sample(seq(1:5), size = 20)

e.y <- 3exp(3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!