inst/snippet/generatingData01.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 vectors

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.