rep_rows: Repeat rows

View source: R/rep.R

rep_rowsR Documentation

Repeat rows

Description

Repeats each row in the matrix or data frame 'x' a number of times equal to 'times'.

Usage

rep_rows(x, times)

Arguments

x

A matrix or data frame

times

An integer indicating the number of times to repeat the row/column

Examples

test_matrix <- matrix(runif(12), 4)
rep_rows(test_matrix, 2)


edsandorf/gizmo documentation built on Oct. 7, 2022, 3:45 p.m.