This function checks whether a given data.frame
or matrix
has
column names (colnames
), row.names (row.names
), or both.
hasNames(dat, nameType = "row")
dat | A vector of data |
---|---|
nameType, | either:
|
TRUE
or FALSE
indicating if the object has names (columns
,
rows
, or
both
)
#> row #> TRUE