unique Function in R (2 Examples) | Remove Duplicate Data Frame Rows | Keep Distinct Vector Elements

preview_player
Показать описание
R code of this video:

vec <- c(1, 3, 3, 1, 4, 7, 1) # Create example vector
vec # Print example vector

vec_unique <- unique(vec) # Apply unique() to vector
vec_unique # Print updated vector

x2 = c("a", "a", "a", "b", "c", "c", "a"))

data_unique <- unique(data) # Apply unique() to data frame

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

I love this !! To the point, clear and just amazing !!

amane