preferred_choice: Select element of vecto by preference

Description Usage Arguments Value

View source: R/function.preferred_choice.R

Description

Returns the element of a vector using a ranked preference list

Usage

1
preferred_choice(x, preferences, default = 1)

Arguments

x

vector from which to choose

preferences

ranked vector of terms to serach for in x

default

if no preferences are found, the default-th element of x is returned

Value

an element of x


ChristopherBarrington/seuratvis documentation built on Sept. 6, 2021, 11:39 p.m.