reverse_names: A function that takes a named vector or list and turns the...

Description Usage Arguments

View source: R/diffr.R

Description

A (largely untested) function that will take a named vector or a named list and reverse elements/names: the names become the elements, and the elements become the names. This is useful to me because I can never remember the structure of named lists preferred by the custom.coef.map argument in texreg.

Usage

1

Arguments

veclist

a named vector or list.

coerce

coerce a list to a vector? silently ignored if veclist is a vector.


graiffgarcia/rrR documentation built on Feb. 12, 2020, 10:34 a.m.