pretty_transpose: Transpose data frame with correct row- and column names.

Description Usage Arguments Details Examples

View source: R/lipidome_comparison_read_TF.R

Description

'pretty_transpose' transposes a data frame to a new data frame

Usage

1
pretty_transpose(input_df)

Arguments

input_df

a data frame with character strings and numerics

Details

This function takes a data frame, transposes it and sets the former first column as the column names. Row names are automatically generated by the data.table::transpose() function.

Examples

1
2
df <- as.data.frame(cbind(c("ID", "a", "b", "c", "d"), c("z", 1, 2, 3, 4), c("x", 5, 6, 7, 8)))
pretty_transpose(df)

lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.