sort_samples: Sort sample names

View source: R/sort_samples.R

sort_samplesR Documentation

Sort sample names

Description

Sort samples names using the first and last run of numbers in a string

Usage

sort_samples(samples)

order_samples(samples)

Arguments

samples

a vector of sample names

Value

A vector

Functions

  • order_samples(): Order sample names

Author(s)

Chris Stubben

Examples

 ids <- c("135X1", "135X21", "135X2", "135X10", "81X5", "81X15")
 sort(ids)
 sort_samples(ids)

HuntsmanCancerInstitute/hciR documentation built on Aug. 20, 2024, 12:22 a.m.