R Programming Questions and Answers – Packages – 1

This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Packages – 1”.

1. ______ let’s you perform SQL queries on your R data frames.
a) sqldf
b) plyr
c) forecast
d) daply
View Answer

Answer: b
Explanation: sqldf uses SQLite syntax. Plyr will split-apply-combine paradigm for R. Forecast is a generic function for forecasting from time series or time series models. The function invokes particular methods which depend on the class of the first argument.

2. ______ splits a data frame and results an array (hence the da). Hopefully you’re getting the idea here.
a) apply
b) daply
c) stats
d) plyr
View Answer

Answer: b
Explanation: ddply splits a data frame and returns a data frame.

3. ________ makes it incredibly easy to fit time series models like ARIMA, ARMA, AR, Exponential Smoothing, etc.
a) sqldf
b) plyr
c) forecast
d) stats
View Answer

Answer: c
Explanation: Most important feature is the resulting forecast plot.

advertisement
advertisement

4. ________ provides needed string operators in R.
a) str
b) forecast
c) stringr
d) sqldf
View Answer

Answer: c
Explanation: stringr is remarkably easy to use.

5. Which of the following syntax is used to install forecast package?
a) install.pack(“forecast”)
b) install.packages(“cast”)
c) install.packages(“forecast”)
d) install.pack(“forecastcast”)
View Answer

Answer: c
Explanation: forecast is used for time series analysis.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which of the following is similar to Moment.js?
a) stringr
b) lubridate
c) ploy
d) forecast
View Answer

Answer: b
Explanation: lubridate is one of those magical libraries that just seems to do exactly what you expect it to.

7. Which of the following is a library for statistical quality control?
a) gcc
b) qcc
c) anc
d) pnc
View Answer

Answer: b
Explanation: qcc can help you monitor transaction volumes, visitors or logins on your website, database operations, and lots of other processes.

advertisement

8. ______ specializes in converting data from wide to long format.
a) gcc
b) reshape
c) reshape2
d) gcc2
View Answer

Answer: c
Explanation: reshape2 is used in conjunction with ggplot2 and plyr.

9. _________ is used to convert wide data to long data.
a) melt
b) dcast
c) cast
d) rcast
View Answer

Answer: a
Explanation: dcast is used to go from long to wide.

advertisement

Sanfoundry Global Education & Learning Series – R Programming Language.

Here’s the list of Best Books in R Programming

Language.

To practice all areas of R Programming Language, Here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.