hasNames: Row and column name check

Description Usage Arguments Value Examples

View source: R/detectCharacterType.R

Description

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

Usage

1
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

1
2
data(anolis)
hasNames(anolis$dat, "row")

treedata.table documentation built on Oct. 23, 2020, 5:50 p.m.