R Programming Basics
R Programming Basics - Important Points
| 16. | Which of the following functions is used to convert a factor variable to a character variable in R Programming? |
|---|
A. as.factor()
B. as.character()
C. factor()
D. character()
View Answer Discuss Work SpaceAnswer: option b
Explanation:
The as.character() function is used to convert a factor variable to a character variable in R Programming.
| 17. | Which of the following functions is used to create a bar plot in R Programming? |
|---|
A. barplot()
B. plot()
C. hist()
D. boxplot()
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The barplot() function is used to create a bar plot in R Programming.
| 18. | Which of the following functions is used to create a histogram in R Programming? |
|---|
A. barplot()
B. plot()
C. hist()
D. boxplot()
View Answer Discuss Work SpaceAnswer: option c
Explanation:
The hist() function is used to create a histogram in R Programming.
| 19. | Which of the following functions is used to create a box plot in R Programming? |
|---|
A. barplot()
B. plot()
C. hist()
D. boxplot()
View Answer Discuss Work SpaceAnswer: option d
Explanation:
The boxplot() function is used to create a box plot in R Programming.
| 20. | Which of the following functions is used to create a density plot in R Programming? |
|---|
A. density()
B. plot()
C. hist()
D. boxplot()
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The density() function is used to create a density plot in R Programming.