rep_cols: Repeat columns

View source: R/rep.R

rep_colsR Documentation

Repeat columns

Description

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

Usage

rep_cols(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_cols(test_matrix, 2)


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