Displaying 1 result from an estimated 1 matches for "lastcolumn".
Did you mean:
last_column
2011 Jul 27
2
apply is making me crazy...
...each row of each matrix
answerGood = lapply(exampGood, function(x) apply(x ,1,cumsum))
answerBad = lapply(exampBad, function(x) apply(x ,1,cumsum))
str(answerGood)
str(answerBad)
## Take the first element of the final column of each answer
for(mat in answerGood){
LastColumn = ncol(mat)
print(mat[1,LastColumn])
}
for(mat in answerBad){
LastColumn = ncol(mat)
print(mat[1,LastColumn])
}
[[alternative HTML version deleted]]