R Programming Questions focuses on “Packages ”.
1. ______ is used to view all packages installed.
a) library()
b) search()
c) .libPaths()
d) stringr()
Answer: a
Clarification: Both require() and library() can load (strictly speaking, attach) an R package.
2. ______ is used to get library location in R.
a) library()
b) search()
c) .libPaths()
d) stringr()
Answer: c
Clarification: libPaths() can add new paths to set of library trees searched.
3. ________ is used to view packages currently loaded.
a) library()
b) search()
c) .libPaths()
d) stringr()
Answer: b
Clarification: This search will allow you to search the contents of the R functions, package vignettes, and task views.
4. ________ contains tools for Approximate Bayesian Computation (ABC).
a) str
b) abc
c) zyz
d) yxq
Answer: b
Clarification: The package implements several ABC algorithms for performing parameter estimation and model selection.
5. Which of the following package combine multi-dimensional arrays?
a) stringr
b) comb
c) abind
d) anlyz
Answer: c
Clarification: This is a generalization of cbind and rbind.
6. Which of the following contains functions for processing uniaxial minute-to-minute accelerometer data?
a) accelerometry
b) abc
c) accrued
d) comb
Answer: a
Clarification: This package contains a collection of functions that perform operations on time-series accelerometer data, such as identify non-wear time, flag minutes that are part of an activity about, and find the maximum 10-minute average count value.
7. __________ is used for selecting regression transformations.
a) gac()
b) gpl()
c) avas()
d) ggc()
Answer: c
Clarification: ace() and avas() both are used for selecting regression transformations.
8. Which of the following is an R package for the exploratory analysis of genetic and genomic data?
a) adeg
b) adegenet
c) anc
d) abc
Answer: b
Clarification: This package contains Classes and functions for genetic data analysis within the multivariate framework.
9. ______ specializes in functions for analytical Customer Relationship Management.
a) adagio
b) ada
c) aCRM
d) adeg
Answer: c
Clarification: Convenience functions for data preparation and modeling are often used in aCRM.
10._________ searches for significant clusters in genetic data.
a) BayesCount
b) BayesComm
c) bayesclust
d) Bayescolcount
Answer: c
Clarification: Bayesclust is an R package for testing and searching for significant clusters. BayesCount is used for power calculations and Bayesian analysis of count distributions and FECRT data using MCMC.