Skip to content
Prev 314114 / 398503 Next

correction needed in codes

Hello,

How about


fun <- function(i){
     matplot(res[[i]][,-1], type="l",col="grey")
     lines(b[[i]], lwd = 2, col = "black")
}
for (i in seq(1)){
     a <- lapply(seq_along(res), function(x) res[[x]][,-1])
     b <- lapply(seq_along(a), function(a) 
matrix(rowMeans(res[[a]]),ncol=1))
     lapply(seq_along(res), fun)
}


Hope this helps,

Rui Barradas
Em 23-12-2012 16:16, eliza botto escreveu: