Examveda
Examveda

What is the purpose of the hist() function in R?

A. Creates a histogram for a numeric variable

B. Computes the histogram of a distribution

C. Generates a random sample from a histogram

D. Plots a probability density function

Answer: Option A


Join The Discussion

Related Questions on Statistical Analysis with R (Distributions, Graphics)

What does the qqnorm() function in R do?

A. Plots a quantile-quantile plot for normality assessment

B. Generates a random sample from a normal distribution

C. Creates a normal probability plot

D. Quantifies the normal distribution of a variable