Learn R Programming

mmrm (version 0.3.14)

h_df_to_tibble: Coerce a Data Frame to a tibble

Description

This is used in h_newdata_add_pred().

Usage

h_df_to_tibble(data)

Value

The data as a tibble, potentially with a .rownames column.

Arguments

data

(data.frame)
what to coerce.

Details

This is only a thin wrapper around tibble::as_tibble(), except giving a useful error message and it checks for rownames and adds them as a new column .rownames if they are not just a numeric sequence as per the tibble::has_rownames() decision.