Why do we obtain five missing values from the following lines of code?
249k points Registered user
NA is a logical type object and the logical vectors are reused to the equal length shared between vector and its subset. For example, x[NA] when iterated five times becomes x[NA, NA, NA, NA, NA].
Get access to your account and question