This function checks whether a given data.frame or matrix has
column names (colnames), row.names (row.names), or both.
Examples
data(anolis)
hasNames(anolis$dat, "row")
#>  row 
#> TRUE 
This function checks whether a given data.frame or matrix has
column names (colnames), row.names (row.names), or both.
data(anolis)
hasNames(anolis$dat, "row")
#>  row 
#> TRUE