Outliers Outliers Out!!
Identify and Remove the Outliers Whether your data contains outliers? Which are those samples, and, how to remove them from your data? We will see these things with example in R. The library we use is “metan” . Install the package if required [use the code install.packages(“metan”) ] and load it. library(metan) Now set the working directory. I have created a folder in the folder Blog of drive E . You have to use your folder here. Remember to use either / or \\ between folder and sub folders and not \. setwd( "E: \\ Blog" ) I have created a sample data having four variables and 28 samples in .csv format and named it “outlier.csv” . The data table is given in the last section of the blog. Read the data and see the header of the data. The function head() shows the first 6 rows of the data by default. data <- read.csv( "outlier.csv" , header = T) head(data) ## pH EC OC BD ## 1 7.2 1.80 1.60 1.19 ## 2 7.2...