t_dt: Efficient transpose of data.frame

View source: R/transpose.R

t_dtR Documentation

Efficient transpose of data.frame

Description

An efficient way to transpose data frames(data.frame/data.table/tibble).

Usage

t_dt(.data)

Arguments

.data

A data.frame/data.table/tibble

Details

This function would return the original data.frame structure, keeping all the row names and column names. If the row names are not available or, "V1,V2..." will be provided.

Value

A transposed data.frame

Examples


t_dt(iris)
t_dt(mtcars)

tidyfst documentation built on Sept. 16, 2024, 9:06 a.m.