unique_na: Unique and omit 'NA'

Description Usage Arguments Examples

View source: R/unique_na.R

Description

Returns the unique list of input, removing NA values, first

Usage

1
unique_na(x, to_unlist = FALSE)

Arguments

x

input vector

to_unlist

boolean of whether to flatten the input with unlist(); default is FALSE

Examples

1
unique_na(c(1, 2, 3, 3, 4, NA))

jhrcook/jhcutils documentation built on Sept. 2, 2020, 7:16 a.m.