Description Usage Arguments Value Examples
Change the formatting of data in column(s) of a dataframe to either human readable or numeric
1 2 3 4 5 6 7 8 |
df |
dataframe, dataframe to apply formatting |
col_names |
str or vector, column names to apply formatting (default is all columns) |
transform_type |
str, type of transformation (e.g. human, num) |
family |
str, family of suffix, numeric or filesize |
errors |
'raise', 'coerce', default 'raise' If 'raise', then invalid parsing will raise an exception. If 'coerce', then invalid parsing will return NA. |
... |
Additional formatting arguments separated by commas, e.g. 'prec'. See full documentation for more details. |
dataframe with formatting applied
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.