To get the 95 percentile outliers in a column in R, you can follow these steps:
read.csv()
function to load it into R:main.r33 chars2 lines
quantile()
function:main.r46 chars2 lines
Replace "mycolumn" with the name of the column containing the data you want to analyze.
main.r50 chars2 lines
This will create a new data frame called "outliers" that contains all the rows where the value in the "mycolumn" column is greater than the 95th percentile.
That's it! You now have a data frame with all the outliers in the column you were analyzing. You can further analyze or visualize this data to gain insights into your data set.
gistlibby LogSnag