R unique()

1 개요[ | ]

R unique()
  • "Extract Unique Elements → 유니크 요소 추출"
R
Copy
a <- c(1,4,5,4,4,3,2,1) 
b <- unique(a)
b
Loading
R
Copy
unique(c(1,2,2,3,3,3,4))
Loading
R
Copy
unique(c(1,2,2,NA,3,3,3,4))
Loading
R
Copy
unique(iris$Species)
Loading

2 같이 보기[ | ]

3 참고[ | ]