has_rownames: Check whether or not a data-frame-like object has rownames

View source: R/utils.R

has_rownamesR Documentation

Check whether or not a data-frame-like object has rownames

Description

Check whether or not a data-frame-like object has rownames

Usage

has_rownames(df)

Arguments

df

A data frame

Value

Logical indicating if df has rownames. If df is a tibble, returns FALSE. If df is a data.frame, return FALSE if the rownames are simply row numbers. If the rownames are anything other than the return row numbers, returns TRUE.


alexpghayes/modeltests documentation built on May 8, 2024, 1:28 p.m.