| convert_elements | R Documentation | 
convert_elements will convert a set of values in a column to a designated replacement value. This can be
viewed as a shortcut to using fct_collapse. Can also accept 'NA' as a target and should return
the input class for that column.
convert_elements(data, col, target, replacement = NA, convert2factor = T)
| data | Data object. | 
| col | Character vector of column to conduct conversion. | 
| target | Character vector of levels for conversion. | 
| replacement | Value of replacement (typically a Character). | 
| convert2Factor | Logical vector, if  | 
Dataset with reformatted columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.