inst/snippet/vectors11.R

x <- seq(2, 20, by = 2)
x[c(TRUE, TRUE, FALSE)]      # skips every third element (recycling!)
x[x > 10]                    # more typical use of boolean in selection
rpruim/fastR2 documentation built on Nov. 11, 2023, 7:32 a.m.