myT: My Transpose

View source: R/myT.R

myTR Documentation

My Transpose

Description

Transpose data. Make the first column of original data be the colnames of the new data and the colnames of original data be either the rownames or the 1st column of new data (depends on output type)

Usage

myT(data_dt, newName_v = NA, toClass_v = "numeric", outType_v = "dt")

Arguments

data_dt

data to transpose

newName_v

name for new 1st column of transposed data (only used if dt is output type)

toClass_v

which class to convert output to (only 'numeric' and 'character' work right now, NULL to avoid.)

outType_v

which type of object to return (dt for data.table, df for data.frame, mat for matrix)


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.