v2d: Vector to Data Frame

View source: R/tmbutils.R

v2dR Documentation

Vector to Data Frame

Description

Convert a named vector to a data frame with two columns, one for the names and one for the values.

Usage

v2d(x, values_col = NULL, names_col = "names")

Arguments

x

named vector

values_col

name of the values column – the default takes a guess

names_col

name of the names column


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.