factorByNumberInStr: Make a factor vector from a character vector by the order of...

View source: R/strWithNumber.R

factorByNumberInStrR Documentation

Make a factor vector from a character vector by the order of the parsed numbers

Description

Make a factor vector from a character vector by the order of the parsed numbers

Usage

factorByNumberInStr(str, decreasing = TRUE)

Arguments

str

Strings

decreasing

Logical, whether decreasing or increasing order is desied, passed to order.

See Also

orderByNumberInStr, which returns the order of strings by numbers in them

Examples

factorByNumberInStr(c("D1", "D10", "D15", "D3.5"))
factorByNumberInStr(c("D1", "D10", "D15", "D3.5"), decreasing=FALSE)

bedapub/ribiosGSEA documentation built on March 30, 2023, 3:26 p.m.