vector_to_tibble: vector_to_tibble

Description Usage Arguments Details Value Examples

View source: R/vector_to_tibble.R

Description

Utility to convert named vector to two column tibble with first column being names of the vector and second being the vector

Usage

1
vector_to_tibble(vec, colname = "col")

Arguments

vec

A vector

colname

Name of the column to be formed

Details

The column containing names will be named 'names_colname'

Value

A tibble

Examples

1
vector_to_tibble(c(a = 1, b = 2), colname = "val")

talegari/sidekicks documentation built on Sept. 26, 2018, 4:18 p.m.