该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


The Repeat() function makes copies of its first argument into a result. The second (and sometimes a third) argument is the number of repeats, where 1 means a single copy.
Repeat( "abc", 2 );
Repeat( {"A"}, 2 );
Repeat( {1, 2, 3}, 2 );
Repeat( [1 2, 3 4], 2, 3 );
Repeat( 9, 2, 3 );
The repeat function is compatible with the function of the same name in the SAS/IML language, but is incompatible with the SAS character DATA step function, which repeats one more time than this function.