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/fastR documentation built on Nov. 12, 2023, 12:26 p.m.