Pattern

Basic Sequences
ten = 1:10 --> 1 2 3 4 5 6 7 8 9 10 new = 5:-5 --> 5 4 3 2 1 0 -1 -2 -3 -4 -5 rep(c(1,2), times=3) --> 1 2 1 2 1 2 rep(c(1,2), each=3) --> 1 1 1 2 2 2 rep(c(1,2), length.out=3 --> 1 2 1 rep(c(1,2,3), times=2, length.out=15, each=3) --> 1 1 1 2 2 2 3 3 3 1 1 1 2 2 2 seq (1, 30, length=3) --> 1.0 15.5 30.0 q (from=1, to=10, by=2) --> 1 3 5 7 9 seq (1, 15, 1.5) --> 1.0 2.5 4.0 5.5 7.0 8.5 10.0 11.5 13.0 14.5 seq (1, 30, length=3) --> 1.0 15.5 30.0
 * 1) Rows of numbers
 * 1) Repeat
 * 1) Sequence

Create Sequence with Letters and Numbers
colnames(Data) <- paste0("PC", seq(1:7)) Gridcells = sprintf("V%s",seq(1:3240)) paste(rep(c("AB", "CD","EF","GH"), times=4), seq(1:4), sep = "_")

Extracting patterns
pattern = "1989|1990|1991|1992|1993" index = grep(pattern, listdaymax) listdaymax[index]

Dataframe with Random Numbers
data.frame(replicate(10,sample(0:130,4369,rep=TRUE)))