In R, given a vector such as [2,3,4,5,6,7], how can I get a vector like [2,3,2,3,4,5,4,5,6,7,6,7], that is, repeat every two elements together once? Thanks in advance for your help!
楼主: wuwei629
|
1767
4
[问答] Repeat subvector in a vector |
本科生 12%
-
|
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明