R Quiz

Quiz R Language

The post is about a Quiz on the R Language.

R Language Online Quiz with Answers

1. What is the R command for selecting sample of size $n=10$ by probability proportional to size (PPS) with $N=40$.

 
 
 
 

2. Which is the R command for selecting a sample of size 3 from the population y<- c(11, 150, 121, 192, 233, 129, 117, 186, 129, 189, 159)

 
 
 
 

3. What is the class of the object defined by the expression x <- c(4, "a", TRUE)?

 
 
 
 

4. Which is the R command for selecting a sample of size 6 from the population yp <- c(111, 159, 121, 198, 120, 136, 14, 129, 17, 115, 186, 119, 121, 153, 143)

 
 
 
 

5. We obtain the 10000 random sample of size 6 under SRSWOR using the following population (111, 158, 122, 193, 111, 148, 112, 128, 113, 151, 185, 200, 199, 121, 115, 114) which is the R command for repeating this procedure 150 times?

 
 
 
 

6. Which of these dplyr verbs can be used to retrieve columns of a dataset?

 
 
 
 

7. For the following population x<-c(1,2,3,4,5)what will be the R command for finding mean?

 
 
 
 

8. For the following population y<- c(1,2,3,4,5), what will be the R command for finding variance?

 
 
 
 

9. Suppose, I have a vector x <- c(3, 6, 1, 19, 12, 8)and I want to set all elements of this vector that are less than 6 to be equal to zero. What R code achieves this?

 
 
 
 

10. Who introduced tidyverse to “share an underlying design philosophy, grammar, and data structures, of tidy data?

 
 
 
 

11. What is the R command for generating bi-variate normal distribution

 
 
 
 


Scroll to top
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security