tableToNumeric: Convert a Table to Numeric

View source: R/dataInitialization.R

tableToNumericR Documentation

Convert a Table to Numeric

Description

This function converts a table to a numeric vector.

Usage

tableToNumeric(x)

Arguments

x

A table to be converted.

Value

A numeric vector with names preserved from the table.

Examples

# Convert a table to numeric
tbl <- table(c("a", "b", "a"))
tableToNumeric(tbl)

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