Skip to contents

Takes a named vector or list and swaps the names with their values

Usage

flip_names(mapping)

Arguments

mapping

A named vector or list where names will be swapped with values

Value

A named vector or list with keys and values flipped, preserving the original class