sg | R Documentation |
Ever get a new dataset and you just want to know all the unique values for the character and/or factor columns? Perhaps so that you can filter or summarise or whatnot on the actual data you need? Well this function will do that for you.
sg(.data)
.data |
a |
a list
where each element is a single column tibble
,
referring to a character/factor column of .data
, and contains the
unique values
## Not run:
sg(dplyr::storms) # Returns a three element list
sg(mtcars) # Returns a message and nothing else
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.