What is the purpose of the R function rnorm(100, mean = 0, sd = 1)?
A. Generate 100 random numbers from a normal distribution with mean 0 and SD 1
B. Generate a sequence from 1 to 100 with mean 0 and SD 1
C. Create a normal distribution plot
D. Compute the cumulative distribution function
Answer: Option A
Related Questions on Introduction to R Programming
What is the primary purpose of R programming language?
A. Web Development
B. Data Analysis
C. Game Development
D. Mobile App Development
In R, what does the function length() do?
A. Returns the sum of elements
B. Returns the number of elements
C. Sorts the elements
D. Computes the mean
What does the function install.packages() do in R?
A. Load a package
B. Uninstall a package
C. Install a new package
D. Update all packages

Join The Discussion