t_df: Data frame transpose

View source: R/dataframes.R

t_dfR Documentation

Data frame transpose

Description

This transposes a data.frame with t() but transforms back into a data.frame with column and row names cleaned up. Because the data types may be mixed and reduced to characters, this may only be useful for a visual viewing of the data.frame.

Usage

t_df(x, id = NULL)

Arguments

x

A data.frame

id

No longer used

Details

Transposes a data.frame as a data.frame

Value

A transposed data.frame with columns ("colname", "row_1", ..., for each row in x.

Examples

x <- data.frame(col_a = Sys.Date() + 1:5, col_b = letters[1:5], col_c = 1:5)
t_df(x)

mark documentation built on May 29, 2024, 5:13 a.m.

Related to t_df in mark...