sort_elements: Sort complex elements.

Description Usage Arguments Value

Description

Sorts (and optionally deduplicates) the elements of complex field.

Usage

1
2
sort_elements(tar_vector, split_reg = "----", decreasing = FALSE,
  dedup = TRUE, collapse_first = TRUE, cf_split = split_reg)

Arguments

tar_vector

The vector of strings with elements to sort.

split_reg

String providing the regex logic for breaking/collapsing target strings.

decreasing

Boolean controlling sort direction.

Value

Returns an updated vector.


datavores/vgsample documentation built on May 14, 2019, 8:59 p.m.