Question
What is the purpose of rep() in R?
Select an option. Your answer will be checked instantly.
Correct Answer: B. To repeat values according to a specified pattern
Explanation:
rep() creates repeated sequences or repeated individual elements.
It is useful for constructing labels and simulated data.
Leave a Reply