namedNumericToTable: Convert Named Numeric Vector to Table

View source: R/dataInitialization.R

namedNumericToTableR Documentation

Convert Named Numeric Vector to Table

Description

This function converts a named numeric vector to a table.

Usage

namedNumericToTable(x)

Arguments

x

A named numeric vector.

Value

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

Examples

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

FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.