| meanUnique {CytoDx} | R Documentation |
A function that calulate mean or take unique elements of a vector.
meanUnique(x)
x |
a vector |
If x is numeric, returns the mean. Otherwise, returns the unique elements of x.
x <- 1:5
meanUnique(x)
x=c("a","a","b")
meanUnique(x)