DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
repeat each value in a vector in r
> rep(c(2, 4, 2), each = 3) [1] 2 2 2 4 4 4 2 2 2
Source by www.dummies.com #
PREVIOUS
NEXT
Tagged:
#repeat
#vector
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit