Learn R Programming

tidytidbits (version 0.3.3)

invert_value_and_names: Inverting name and value

Description

Inverting name and value

Usage

invert_value_and_names(v)

Value

A vector where names(v) are the values and the values of v are the names

Arguments

v

A named vector