vec_prioritise {tatoo}R Documentation

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)

Arguments

x

a character vector

high

elements to be put to the front

low

elements to be put to the back

Value

a reordered vector


[Package tatoo version 1.1.2 Index]