repeat
Usage:
repeat [-row|-table] <count>
Repeats the rows of a table multiple times to produce
a longer table.
The output table will have <count>
times
as many rows as the input table.
The optional flag determines the sequence of the output rows.
If <count>
=2 and there are three rows,
the output sequence will be 112233 for -row
and 123123 for -table
.
The default behaviour is currently -table
.
The <count>
value will usually
be a constant integer value, but it can be an expression
evaluated in the context of the table,
for instance 1000000/$nrow
.
If it's a constant, it may be given as a plain integer (1000
),
or with embedded underscores (1_000
),
or in exponential format (1e3
).