Learn R Programming

tatoo (version 1.1.2)

vec_prioritise: Rearrange vector based on priorities

Description

Shoves elements of a character vector to the front or back. Throws a warning if any elements of `high` or `low` are not present in `x`.

Usage

vec_prioritise(x, high = NULL, low = NULL)

Value

a reordered vector

Arguments

x

a character vector

high

elements to be put to the front

low

elements to be put to the back