What is the purpose of the density() function in R?
A. Computes the kernel density estimate of a numeric variable
B. Creates a density plot for a numeric variable
C. Calculates the probability density function of a variable
D. Applies a density transformation to a data frame
Answer: Option B
Join The Discussion