arrange_wbs: Arrange rows by wbs

Description Usage Arguments Value Examples

View source: R/tidy_wrappers.R

Description

arrange_wbs() orders rows by the wbs in ascending order.

Usage

1
arrange_wbs(.data, .wbs_col = NULL)

Arguments

.data

An object of type data.frame.

.wbs_col

Unquoted column name to sort on. If NULL then default_col_wbs() is used to select the wbs column.

Value

A tibble.

Examples

1
2
3
4
5
6
7
8
9
x <- as_wbs(c("1", "1.1", "1.2", "1.1.1", "1.10"))
df <- data.frame(wbs = x, value = runif(length(x)))

# Equivalent entries for this example
df %>%
  arrange_wbs()
  
df %>%
  arrange_wbs(wbs)

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