transDT: A function for quickly transposing data.table objects

Description Usage Arguments Examples

View source: R/transDT.R

Description

This function allows you transpose data.table objects very rapidly, whilst maintaining control of row and column names.

Usage

1
transDT(dt, transCol, rowID)

Arguments

dt

The data.table object you wish to transpose.

transCol

The name of the column that you wish to pivot on. Values in this column will become the new colnames.

rowID

This will be the name of the new rownames column

Examples

1

Dave-Clark/ecolFudge documentation built on Aug. 4, 2020, 5:17 p.m.