Question: Which of the following extracts elements two through five from the following vector? x = c (a, b, c, c, d, a) Group of answer

Which of the following extracts elements two through five from the following vector?

x = c("a", "b", "c", "c", "d", "a")

Group of answer choices

x[2:5]

x(2,5)

x(2:5)

x[2,5]

2) What will be the output of the following R code?

x = matrix(1:6, nrow=3, ncol=2, byrow=FALSE)

x[ ,2 ]

Group of answer choices

1 2 3

1 3 5

4 5 6

2 4 6

3) R code checks current working directory.

Group of answer choices

getwd()

View()

setwd()

library()

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 General Management Questions!