R: Transpose a Data Frame.

transposeRelAbund {patPRO} | R Documentation

## Transpose a Data Frame.

### Description

This function will transpose a data frame, with the result maintained as a data frame (unlike other functions which work with matrices). Although this was written with relative abundance tables in mind, it may be applied to other data frame types.

### Usage

    transposeRelAbund(x,
    	sample.id.col="SampleID")

### Arguments

`x` | The relative abundance `data.frame` (or other type of `data.frame`) to be transposed.
`sample.id.col` | The Sample ID column name from data frame x. Default is "SampleID".

### Details

Package: | patPRO
Type: | Package
Version: | 1.0.0
Date: | 2015-09-18
License: | GPLv3

An overview of how to use the package, including the most important functions, is included in the supplemental R notebook patPROExampleWorkflow.html.

### Author(s)

Geoffrey Hannigan <ghanni@upenn.edu>, Loesche MA, Hodkinson BP, Mehta S, Elizabeth Grice <egrice@upenn.edu>

### References

patPRO: An R package for the visualization of longitudinal microbiome data. Hannigan GD, Loesche MA, Hodkinson BP, Mehta S, Grice EA.

### Examples

    data("PatProOTU",package="patPRO")
    transTestRelAbund <- transposeRelAbund(PatProOTU)

[Package patPRO version 1.1.0 Index]