tt: Transpose and return a tibble.

Description Usage Arguments Value Examples

View source: R/tt.R

Description

Transpose and return a tibble.

Usage

1
tt(df, new.names = NULL)

Arguments

df

A dataset (data.frame, tibble, etc.).

new.names

A vector of names for the new columns (optional).

Value

A transposed dataset as a tibble.

Examples

1
2
df <- rbind(apply(cars, 2, mean), apply(cars, 2, sd))
tt(df, new.names = c("m", "s"))

ndtallant/tidytallant documentation built on Feb. 5, 2020, 1:19 p.m.