df_to_tt: Create an 'ElementaryTable' from a 'data.frame'

View source: R/tt_from_df.R

df_to_ttR Documentation

Create an ElementaryTable from a data.frame

Description

Create an ElementaryTable from a data.frame

Usage

df_to_tt(df)

Arguments

df

(data.frame)
a data frame.

Details

If row names are not defined in df (or they are simple numbers), then the row names are taken from the column label_name, if it exists. If label_name exists, then it is also removed from the original data. This behavior is compatible with as_result_df(), when as_is = TRUE and the row names are not unique.

See Also

as_result_df() for the inverse operation.

Examples

df_to_tt(mtcars)


Roche/rtables documentation built on April 20, 2024, 9:16 p.m.