Basic R Programs for Beginners
Basic R Programs for Beginners - Important Points
6. | What is the output of the following R code snippet? x <- c(1, 2, 3, 4, 5) |
---|
A. 1 2 3
B. 1 5
C. 2 3 4
D. 4 5
View Answer Discuss Work SpaceAnswer: option b
Explanation:
7. | What is the output of the following R code snippet? x <- 1 |
---|
A. 1 2 3 4
B. 2 3 4 5
C. 1 2 3 4 5
D. Error
View Answer Discuss Work SpaceAnswer: option a
Explanation:
8. | What is the output of the following R code snippet? x <- 1 |
---|
A. 5
B. 24
C. 120
D. 720
View Answer Discuss Work SpaceAnswer: option c
Explanation:
9. | What is the output of the following R code snippet? x <- c(1, 2, 3, 4, 5) |
---|
A. A data frame with two columns: x and y, with the rows where x is even.
B. A data frame with two columns: x and y, with the rows where y is even.
C. A data frame with two columns: x and y, with the rows where both x and y are even.
D. Error
View Answer Discuss Work SpaceAnswer: option a
Explanation:
10. | What is the output of the following R code snippet? x <- c(1, 2, 3, 4, 5) |
---|
A. 1 "2" "3" "4" "5"
B. one "two" "three" "four" "five"
C. five "four" "one" "three" "two"
D. Error
View Answer Discuss Work SpaceAnswer: option c
Explanation: