inst/snippet/generating-data01.R

x <- 5:20; x                 # all integers in a range
# structured sequences
seq(0, 50, by = 5)               
seq(0, 50, length = 7)               
rep(1:5, each = 3)
rep(1:5, times = 3)
c(1:5, 10, 3:5)              # c() concatenates 
rpruim/fastR documentation built on Nov. 12, 2023, 12:26 p.m.