I saw the following in an example on subsetting, and I don't understand it as I'm still fairly new to R.
x <- c(1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9)
x[c(TRUE, TRUE, FALSE, FALSE)]
[1] 1.1 2.2 5.5 6.6 9.9
I understand the creation of the vector of numerics. But I don't understand how or why the result is generated by subsetting using the boolean values.