Dear All: is there away for subsetting data by the median position?
Example: ------------ *Data1: *2, 4, 8, 9,11,11,12 *(n is odd)* *Data1: *2,4,8,9,11,11,12,15 * (n is even)* for Data1: * I want to get:* *lower half: 2 4 8* *upper half: 11 11 12* *for Data2: I want to get:* *lower half: 2 4 8 9* *upper half: 11 11 12 15* with many thanks steve -- Steven M. Stoline 1123 Forest Avenue Portland, ME 04112 [email protected] [[alternative HTML version deleted]] _______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
