R seq Function
seq() function generates a sequence of numbers.
seq(from = 1, to = 1, by = ((to - from)/(length.out - 1)),
length.out = NULL, along.with = NULL, ...)
• from, to: begin and end number of the sequence
• by: step, increment (Default is 1)
• length.out: length of the sequence
seq(from=:,to,by)
seq(5)
1:5
seq(5)==1:5
all(seq(5)==1:5 )
!all(seq(5)==1:5 )
rep(1,5)
rep("a",50)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.