add_unique {x.ent} | R Documentation |
Add a value to a current list that every value is unique
Description
Add a value to an existing list of values. These values are unique in the list.
Usage
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
list1= c("a","b","c")
value = "a"
list1 <- add_unique(list1,value)
[Package x.ent version 1.1.7 Index]