Skip to main content
1 de 3

Si x es tu vector, entonces:

x <- c(1,1,2,3,4)
unique(x)

Si es un data frame:

df <- as.data.frame(a = c(1,1,2,3,4))
unique(df$a)