adplus-dvertising
frame-decoration

Question

Which of the following extracts first four element from the following R vector?
> x <- c("a", "b", "c", "c", "d", "a")

a.

x[0:4]

b.

x[1:4]

c.

x[0:3]

d.

x[4:3]

Answer: (b).x[1:4]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following extracts first four element from the following R vector?

Similar Questions

Discover Related MCQs

Q. Point out the wrong statement?

Q. Point out the correct statement?

Q. Point out the wrong statement?

Q. Point out the wrong statement?

Q. Which of the following code represents internal representation of a Date object?

Q. Which of the following function gives the day of the week?

Q. Point out the correct statement?

Q. Point out the wrong statement?

Q. Which of the following return a subset of the columns of a data frame?

Q. Point out the correct statement?

Q. _________ extract a subset of rows from a dataframe based on logical conditions.

Q. _________ generate summary statistics of different variables in the data frame, possibly within strata.

Q. Point out the wrong statement?

Q. ________ add new variables/columns or transform existing variables.

Q. The _______ operator is used to connect multiple verb actions together into a pipeline.

Q. The dplyr package can be installed from GitHub using the _______ package.

Q. The dplyr package can be installed from CRAN using __________

Q. Which of the following object is masked from ‘package: stats’?

Q. The _________ function can be used to select columns of a data frame that you want to focus on.

Q. Point out the correct statement?