as.data.frame_named.vector: Coerce to a Data Frame

Description Usage Arguments Value

View source: R/as.data.frame_named.vector.R

Description

converts a named vector to a 2 column data frame with the names in the first column and values in the second columns. Throws an error if no names are found. Row names are stripped out of the final data frame.

Usage

1

Arguments

x

a named vector

valname

a character string to be used as the new column name. Defaults to the name of x

Value

a two column data frame with nrow = length(x)


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.