seq(1, 2, 0.1) [1] 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0
Karen C. Goncalves dos Santos
October 3, 2023
seq() and rep fucntionsseqUse the command seq to get a sequence of numbers. You can specify the interval between every number shown. The function is writen as: seq(FROM, TO, INTERVAL)
If you want to see every integer between two numbers you can use : or you can omit the interval in the seq command.
repSyntax: rep(X, TIMES, EACH)