I have an R script that I am using to create a new data matrix consisting of bin values from a matrix of continuous data. Right now it works fine using this command:
quant.mat <- apply(input.dat,2,quantile)
But this gives me the standard quantile distribution of 0.25, 0.5, and 0.75. What I want is to be able to arbitrary specify different values (e.g. 0.2, 0.4, 0.6, 0.8). I can't seem to make it work.