Learn R Programming

biotic (version 0.1.2)

transposedata: Transpose data layout

Description

Transposes a dataset, correctly processing column and row labels.

Usage

transposedata(df)

Arguments

df
A dataframe containing abundances of invertebrate taxa in different samples.

Value

A data frame transposing the input data, with row and column labels processed correctly.

Examples

Run this code
# transpose the built-in River Almond dataset
# this would have to be transposed back to original format for calculation

transposedata(almond)

Run the code above in your browser using DataLab