View source: R/get_segment_table.R
format_code | R Documentation |
Take a value like "a + b" and (1) replace it with NA if na_col == NA. (2) Change to "(a + b)" if there is a "+" (3) Return itself otherwise, e.g., "a" –> "a".
format_code(col, na_col)
col |
A column |
na_col |
If this column is NA, return NA |
string
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.