colToMat: Break a n * p data frame in a data frame with ceiling(n /...

Description Usage Arguments Value Author(s)

View source: R/colToMat.r

Description

Often, one does not want to span a data frame over several pages. This function breaks a n \times p data frame in a data frame with ceiling(n / cols) rows and cols * p columns.

Usage

1
colToMat(tab, cols)

Arguments

tab

The data frame to be reformatted.

cols

Number of columns of the reformatted data.frame.

Value

Returns the reformatted data frame.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch


reporttools documentation built on Oct. 12, 2021, 5:06 p.m.