forceNames {treedata.table}R Documentation

Force names for rows, columns, or both

Description

This function creates column names (colnames), row.names (row.names), or both in an unnamed data.frame or matrix.

Usage

forceNames(dat, nameType = "row")

Arguments

dat

A vector of data

nameType

either:

"row"

Rows (default)

"col"

Columns

"rowcol"

Both rows and columns

Value

An object of type 'data.frame with labeled columns, rows, or both.

Examples

data(anolis)
forceNames(anolis$dat, "row")

[Package treedata.table version 0.1.0 Index]