[R] order in lapply

2003-07-02 Thread Ernesto Jardim
Hi When using split is it possible to keep then same ordering of the factor on the output list ? Thanks EJ -- Ernesto Jardim [EMAIL PROTECTED] Biólogo Marinho/Marine Biologist IPIMAR - Instituto Nacional de Investigação Agrária e das Pescas IPIMAR - National Research Institute for Agriculture

Re: [R] order in lapply

2003-07-02 Thread Sundar Dorai-Raj
Ernesto Jardim wrote: Hi When using split is it possible to keep then same ordering of the factor on the output list ? Thanks EJ There may be an easier way to do this but I would make the split variable ordered before calling split. As in: d = data.frame(a = 1:4, b = c(d, c)) sapply(d,