OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » R Programming Quiz

The function to generate random numbers in R following a normal distribution is ________.

Difficulty level
  • generate_random()
  • randn()
  • random()
  • rnorm()
The rnorm() function in R is used to generate random numbers following a normal distribution. For example, rnorm(10) would generate 10 random numbers from a standard normal distribution.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
R Programming Quiz
Quiz
Can every problem solved with recursion also be solved with loops in R?
Imagine you need to calculate the median of each column in a data frame in R. How would you do this?

Related Quiz

  • What is a list in R?
  • The syntax for a while loop in R is while (condition) { ________ }.
  • To get the indices of a logical vector in R where the value is TRUE, you can use the ________ function.
  • In R, the operator != is used to check if two values are ________.
  • Imagine you want to concatenate a vector of numbers into a single string. What steps would you take?

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

PHP QuizPython QuizData Analyst QuizAdobe Experience Manager QuizServlet QuizExploratory Data Analysis QuizAppium QuizNode.js QuizR Programming QuizSpring Boot QuizJava QuizCCNA QuizAPI Testing QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizADO.NET QuizASP.NET Core Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy