menu

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()

Discuss Work Space

Answer: 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()

Discuss Work Space

Answer: 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()

Discuss Work Space

Answer: 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()

Discuss Work Space

Answer: 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()

Discuss Work Space

Answer: option a

Explanation:

The density() function is used to create a density plot in R Programming.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now