powered by
This function checks whether a given data.frame or matrix has column names (colnames), row.names (row.names), or both.
data.frame
matrix
colnames
row.names
hasNames(dat, nameType = "row")
A vector of data
either:
Rows (default)
Columns
Both rows and columns
TRUE or FALSE indicating if the object has names (columns, rows, or both)
TRUE
FALSE
columns
rows
both
# NOT RUN { data(anolis) hasNames(anolis$dat, "row") # }
Run the code above in your browser using DataLab