R unique example

By ganpati | Uncategorized

Jan 13

13unique_img

unique function in R

What it does?
It returns the unique values in a vector
Syntax:
unique (vector)
Example:
x<- c(1,1,1,2,2,3,4,4,5) unique (x) [1] 1 2 3 4 5

About the Author

Leave a Comment:

Leave a Comment: