This function checks whether a given data.frame
or matrix
has
column names (colnames
), row.names (row.names
), or both.
Arguments
- dat
A vector of data
- nameType,
either:
- "row"
Rows (default)
- "col"
Columns
- "rowcol"
Both rows and columns
Examples
data(anolis)
hasNames(anolis$dat, "row")
#> row
#> TRUE