sg: Sui generis: show the unique values of character and factor...

View source: R/sui-generis.R

sgR Documentation

Sui generis: show the unique values of character and factor columns

Description

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.

Usage

sg(.data)

Arguments

.data

a data.frame

Value

a list where each element is a single column tibble, referring to a character/factor column of .data, and contains the unique values

Examples

## Not run: 
sg(dplyr::storms) # Returns a three element list
sg(mtcars) # Returns a message and nothing else

## End(Not run)

baslat/sak documentation built on April 14, 2025, 4:14 p.m.