View source: R/strWithNumber.R
factorByNumberInStr | R Documentation |
Make a factor vector from a character vector by the order of the parsed numbers
factorByNumberInStr(str, decreasing = TRUE)
str |
Strings |
decreasing |
Logical, whether decreasing or increasing order is desied, passed to |
orderByNumberInStr
, which returns the order of strings
by numbers in them
factorByNumberInStr(c("D1", "D10", "D15", "D3.5"))
factorByNumberInStr(c("D1", "D10", "D15", "D3.5"), decreasing=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.