R Programming Basics
R Programming Basics - Important Points
6. | Which of the following functions is used to extract a subset of a data frame in R Programming? |
---|
A. select()
B. filter()
C. slice()
D. subset()
View Answer Discuss Work SpaceAnswer: option d
Explanation:
The subset() function is used to extract a subset of a data frame in R Programming.
7. | Which of the following functions is used to calculate the mean of a vector in R Programming? |
---|
A. sd()
B. median()
C. var()
D. mean()
View Answer Discuss Work SpaceAnswer: option d
Explanation:
The mean() function is used to calculate the mean of a vector in R Programming.
8. | Which of the following functions is used to calculate the standard deviation of a vector in R Programming? |
---|
A. sd()
B. median()
C. var()
D. mean()
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The sd() function is used to calculate the standard deviation of a vector in R Programming.
9. | Which of the following functions is used to generate random numbers in R Programming? |
---|
A. sample()
B. runif()
C. rnorm()
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
All of the above functions are used to generate random numbers in R Programming.
10. | Which of the following functions is used to find the maximum value in a vector in R Programming? |
---|
A. min()
B. range()
C. max()
D. summary()
View Answer Discuss Work SpaceAnswer: option c
Explanation:
The max() function is used to find the maximum value in a vector in R Programming.