replicate a number in python code example
Example 1: replicate python
>>> ["A","B"]*2
['A', 'B', 'A', 'B']
Example 2: replicate python
> rep(c("A","B"), times=2)
[1] "A" "B" "A" "B"
>>> ["A","B"]*2
['A', 'B', 'A', 'B']
> rep(c("A","B"), times=2)
[1] "A" "B" "A" "B"