vector_to_tibble: vector_to_tibble

Description Usage Arguments Details Value Examples

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 May 30, 2019, 8:40 a.m.