sample_data_stable: Create sample data without adjusting row/sample names

sample_data_stableR Documentation

Create sample data without adjusting row/sample names

Description

phyloseq::sample_data() will change the sample names from the row names if they are as.character(1:nrow(object)). This function instead keeps the names as is.

Usage

sample_data_stable(object)

Arguments

object

A "data.frame"-class object

Examples

x <- data.frame(var1 = letters[1:3], var2 = 7:9)
rownames(x)
sample_data(x)
speedyseq:::sample_data_stable(x)

mikemc/speedyseq documentation built on April 22, 2024, 6:40 p.m.