unique_len: Combine unique() and length()

View source: R/uniquelen.R

unique_lenR Documentation

Combine unique() and length()

Description

Combine two frequently used function together to return the length of the unique items of a vector

Usage

unique_len(.)

Arguments

.

object such as vector or names(dataframe)

Value

length of the unique items in a vector

Examples

frenchnames1 = c("Léa","Obinna","Bastien","Léa","Obinna", "Hugo", "Amélie","Louis")
unique_len(frenchnames1)


quickcode documentation built on April 11, 2025, 5:49 p.m.