search for: firsthalf

Displaying 1 result from an estimated 1 matches for "firsthalf".

Did you mean: firstcall
2001 Jul 10
1
returning quartiles of a list?
Hi, all. I have a list: process <- c( 5 , 7 , 4 , 1 , 4 , 1) and I'd like to get each half (or each third or each quartile) of the list: process.firsthalf would be (5, 7, 4) and process.secondhalf would be (1, 4, 1). note that I'm not interested in the numeric quartiles (then I could use quantile or several other functions). what is the best way to get this kind of thing? for odd legnth lists, I don't particularly care if the first or the...