Say I have a data frame df containing a column “A” taking real values. I know I can select only this column from the data frame and I know some commands to extract certain data from it e.g.
df.A = df[df$A > 5 & df$A < 10, c("A")]
However, how would I select for example the interquartile range, and more generally take the column minus the smallest X percent and largest Y percent of the values?
Cheers
You can use
quantile():