expandrows: Repeat rows in a table

View source: R/expandrows.R

expandrowsR Documentation

Repeat rows in a table

Description

Repeat each row of a table according to a count vector.

Usage

expandrows(data, times)

Arguments

data

A data frame or data table.

times

A scalar or row-wise count vector giving repetitions.

Value

A basetable with repeated rows.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.