transform_num | R Documentation |
Formats numeric performance measure columns for representation in tables.
transform_num(df, colname, .numdec = 2, .percsub = NULL)
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. |
Formatted dataframe with formatted performance measure column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.