add_unique: Add a value to a current list that every value is unique

Description Usage Arguments Value Examples

View source: R/stat.R

Description

Add a value to an existing list of values. These values are unique in the list.

Usage

1
  add_unique(list, value)

Arguments

list

: a list of values

value

: a value that we want to add to the list

Value

list

return a list that elements in the list aren't duplicated

Examples

1
2
3
  list1= c("a","b","c")
  value = "a"
  list1 <- add_unique(list1,value)

x.ent documentation built on May 2, 2019, 2:14 p.m.

Related to add_unique in x.ent...