R语言dplyr包distinct函数去除重复数据行实战
目录
#导入dplyr包
install.packages("dplyr")
# Install and load dplyr
library("dplyr")
#仿真数据
data <- data.frame(x1 = c(1:5, 1),
# Create example data
x2 = c(letters[1:5], "a"))
data
# Print data t