Question
What does the R expression x[3] return when x is a vector?
Select an option. Your answer will be checked instantly.
Correct Answer: D. The third element of x
Explanation:
Square brackets select elements by position or condition.
A single index of 3 retrieves the third element.
Leave a Reply