order_wbs: Ordering permutation (wbs)

Description Usage Arguments Value Examples

View source: R/wbs_tools.R

Description

order_wbs returns a permutation which rearranges the wbs into ascending order.

Usage

1
order_wbs(x, decreasing = FALSE)

Arguments

x

A wbs vector.

decreasing

Not yet implemented argument.

Value

An integer vector.

Examples

1
2
3
4
x <- as_wbs(c("1", "1.1", "1.2", "1.1.1", "1.10"))
order_wbs(x)

x[order_wbs(x)]

Technomics/wbstools documentation built on Jan. 28, 2020, 7:10 a.m.