treedata.table (version 0.1.0)

hasNames: Row and column name check

Description

This function checks whether a given data.frame or matrix has column names (colnames), row.names (row.names), or both.

Usage

hasNames(dat, nameType = "row")

Arguments

dat

A vector of data

nameType,

either:

"row"

Rows (default)

"col"

Columns

"rowcol"

Both rows and columns

Value

TRUE or FALSE indicating if the object has names (columns, rows, or both)

Examples

Run this code
# NOT RUN {
data(anolis)
hasNames(anolis$dat, "row")
# }

Run the code above in your browser using DataLab