Question
> set.seed(10)
> x <- rbinom(100, 1, 0.5)
> str(x)
a.
Int [1:100] 1 0 0 1 0 0 0 0 1 0 …
b.
Int [1:100] 10 0 01 1 0 0 01 0 1 0 …
c.
Int [1:100] 1 03 0 1 0 0 0 02 1 0 …
d.
Int [1:100] 1 2 3 1 1 0 0 0 1 0 …
Posted under R Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following R code?
Similar Questions
Discover Related MCQs
Q. __________ distribution is commonly used to model data that come in the form of counts.
View solution
Q. Which of the following code represents count with mean of 2?
View solution
Q. ________ is a systematic way to examine how much time is spent in different parts of a program.
View solution
Q. Point out the correct statement?
View solution
Q. R comes with a ________ to help you optimize your code and improve its performance.
View solution
Q. The _______ function computes the time (in seconds) needed to execute an expression.
View solution
Q. Point out the correct statement?
View solution
Q. system.time function returns an object of class _______ which contains two useful bits of information.
View solution
Q. _________ time is time charged to the CPU(s) for the R expression.
View solution
Q. The elapsed time may be ________ than the user time if your machine has multiple cores/processors.
View solution
Q. Parallel processing is done via __________ package can make the elapsed time smaller than the user time.
View solution
Q. You can time ________ expressions by wrapping them in curly braces within the call to system.time().
View solution
Q. The profiler can be turned off by passing _________ to Rprof().
View solution
Q. Point out the correct statement?
View solution
Q. How many methods exist for normalizing the data?
View solution
Q. _______ divides the time spend in each function by the total run time.
View solution
Q. Point out the correct statement?
View solution
Q. Which of the following function actually fits the linear model?
View solution
Q. The final bit of output that summaryRprof() provides is the ______ interval and the total runtime.
View solution
Q. Which of the following statement gives sampling interval?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!