Learn R Programming

modeltests (version 0.1.6)

has_rownames: 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)

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.

Arguments

df

A data frame