Here's a question for #RStats folks: Is the length of x and y same? x = letters[c(2, NA)] y = letters[c(NA, NA)]
2
3
2
0
0
Sign up for more such interesting questions at saral.club
@data_question [SPOILER] No. x has length 2 with values of "B" and NA, while y has length equal to length of LETTERS with all values being NA. This is probably because the second case is interpreted as all index values missing.