CodeManga

falah remove outliners

Jul 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # to remove outliners
  2. boxplot(data$Age)
  3. summary(data$Age)
  4. which(data$Age > 60)
  5. table(data$Age > 60)
  6. data_new<-data[-which(data$Age > 60),]
  7. boxplot(data_new$Age)
Advertisement
Add Comment
Please, Sign In to add comment