transform_num: Transform Numeric Performance Measures

View source: R/perf_tables.R

transform_numR Documentation

Transform Numeric Performance Measures

Description

Formats numeric performance measure columns for representation in tables.

Usage

transform_num(df, colname, .numdec = 2, .percsub = NULL)

Arguments

df

Performance measure dataframe.

colname

Name of performance measure column to format as number; string.

.numdec

Number of decimal places; default 2.

.percsub

Default NULL. Perf_read looks for the word "percent" in the measurement name to determine whether to round the row to 2 decimal points and multiply it by 100. In some cases "percent" does not appear in the measurement name for percentage-based metrics. In these cases, .percsub accepts a logical vector of T/F corresponding to the number of rows in the performance table, with true indicating it is a performance measure and F indicating it is not.

Value

Formatted dataframe with formatted performance measure column


dpowerstp/tpbudget documentation built on June 3, 2022, 1:41 a.m.