vector2df: Convert a vector to a data frame

Description Usage Arguments Value Examples

View source: R/vector2df.R

Description

Convert a vector into a 1-row data frame using the names of the vector as column names for the data frame.

Usage

1

Arguments

x

A vector.

nice_names

A logical indicating whether names should be nicified.

Value

A data frame.

Examples

1
2
vector2df(c(1, b = 2, `(Intercept)` = 3))
vector2df(c(1, b = 2, `(Intercept)` = 3), nice_names = TRUE)

mosaicCore documentation built on Jan. 16, 2021, 5:32 p.m.