Question
Which R function samples values randomly from a vector?
Select an option. Your answer will be checked instantly.
Correct Answer: D. sample()
Explanation:
sample() draws elements with or without replacement.
It is commonly used for resampling, permutation, and simulation.
Leave a Reply