[R] Nested? Two-way ANOVA with repeated measures

2012-02-02 Thread Vladimir Mikryukov
el. Tanks in advance for any suggestions and/or helpful links! Vladimir. PS. If it’ll be easier to do it with the long format of data one can run this code: library(reshape2) data.long <- melt(dat, measure.vars=c("Cond1", "Cond2"), variable.name =&quo

Re: [R] Extract rows from a list object

2010-08-24 Thread Vladimir Mikryukov
Thanks a lot!! It sure helped. and many thanks to all other repliers! On Tue, Aug 24, 2010 at 3:40 PM, Dimitris Rizopoulos < d.rizopou...@erasmusmc.nl> wrote: > try something like this: > > n <- 23 > x <- array(1:20, dim = c(n, 6)) > huge.list <- rep(list(x), 1000) > > out <- lapply(1:4, functio

[R] Extract rows from a list object

2010-08-24 Thread Vladimir Mikryukov
,]47 10 13 16 19 # I tried to convert a list object to an array ARR <- array(unlist(huge.list), dim = c(dim(huge.list[[1]]), length(huge.list))) # then split it and use abind function, but it didn't work Thanks in advance! Vladimir -- Vladimir Mikryukov PhD student Institu