Learn R Programming

FastUtils (version 0.2.1)

namedNumericToTable: Convert Named Numeric Vector to Table

Description

This function converts a named numeric vector to a table.

Usage

namedNumericToTable(x)

Value

A table with the same names and values as the input vector.

Arguments

x

A named numeric vector.

Examples

Run this code
# Convert a named numeric vector to a table
vec <- c(a = 1, b = 2, c = 3)
namedNumericToTable(vec)

Run the code above in your browser using DataLab