broom (version 0.4.1)

tidy.numeric: Tidy atomic vectors

Description

Turn atomic vectors into data frames, where the names of the vector (if they exist) are a column and the values of the vector are a column.

Usage

"tidy"(x, ...)
"tidy"(x, ...)
"tidy"(x, ...)

Arguments

x
An object of class "numeric", "integer", "character", or "logical". Most likely a named vector
...
Extra arguments (not used)

Examples

Run this code

x <- 1:5
names(x) <- letters[1:5]
tidy(x)

Run the code above in your browser using DataLab