round_list | R Documentation |
Round all values in an arbitrarily complex list. All character values are ignored and returned as they were
round_list(lst = NULL, digits = 2, print_elem_names = FALSE)
lst |
A list of arbitrary complexity |
digits |
The number of decimal points to round all numeric values to |
print_elem_names |
Logical. Print names of each list element to the screen |
This is a recursive function and therefore can have an arbitrary nesting of lists.
A list in the same format as lst
but with all values rounded to
digits
decimal points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.