ez.flipflop: switch the names and values of a named vector, so that...

View source: R/basic.R

ez.flipflopR Documentation

switch the names and values of a named vector, so that names->values, values->names

Description

switch the names and values of a named vector, so that names->values, values->names

Usage

ez.flipflop(v)

Value

returns a new named vector, if input is NULL or not named vector, return the inital input vector direclty.


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.