Learn R Programming

textshape (version 1.5.0)

bind_vector: Column Bind an Atomic Vector's Values with Its Names

Description

Deprecated, use tidy_vector instead.

Usage

bind_vector(x, id.name = "id", content.name = "content", ...)

Arguments

x

A named atomic vector.

id.name

The name to use for the column created from the vector names.

content.name

The name to use for the column created from the vector values.

…

ignored.

Value

Returns a data.table with the names from the vector as an id column.

Examples

Run this code
# NOT RUN {
x <- setNames(sample(LETTERS[1:6], 1000, TRUE), sample(state.name[1:5], 1000, TRUE))
bind_vector(x)
# }

Run the code above in your browser using DataLab