I couldn't find this in the archive so here is an attempt at a fairly simple interquartile range function for those who might be looking for it.
iqr=: 3 : 0
q=: 3 : '-/(((1+ i. #y) % #y) I. 0.75 0.25) {/:~y'
q "1 |: y
)
Pretty certain it can be written much more concisely: just not by me right now 🙂
Emir
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
