Skip to content
Prev 374782 / 398506 Next

Manipulation of data.frame into an array

Hello,

I am not sure I understand the question, but see if the following is 
what you want.

split(Imputed, cumsum(c(0, diff(Imputed$Y) != 1)))


Hope this helps,

Rui Barradas
On 5/24/2018 3:46 PM, Ioanna Ioannou wrote: