organize_levels: Decides on the levels of factors x and y

Description Usage Arguments Value Examples

View source: R/asymmetrise.R

Description

Organizes the levels to use for the two inputs. This is useful for when one wants to merge two vectors that are factors. Ideally, they have the same levels, in which case those are returned. If they have overlapping levels, then the levels are merged and sorted (using sort()). Otherwise, the levels are dropped (returning NULL)

Usage

1

Arguments

x, y

Two factor vectors

...

passed to sort; see ?sort for options

Value

vector of levels or NULL for no levels

Examples

1
2
3
4
5
6
7
8
9

ggasym documentation built on May 16, 2021, 1:07 a.m.