Skip to contents

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)
#> 
#> a b c 
#> 1 2 3