Description Usage Arguments Details Examples
View source: R/lipidome_comparison_read_TF.R
'pretty_transpose' transposes a data frame to a new data frame
1 | pretty_transpose(input_df)
|
input_df |
a data frame with character strings and numerics |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.