search for: gayan

Displaying 2 results from an estimated 2 matches for "gayan".

Did you mean: yayan
2012 Jan 08
3
Conditional Loop For Data Frame Columns
...exed mean function meanfun <- function(x) { for(i in 3:ncol(x)) { meanSD <- tapply(x[,i], ID, FUN=mean)} return(meanSD) } #apply function to data meanfun(SD) What I get is one set of indexed means: 7605 Andrea Billy ERR006 FJM13 2.111111 1.400000 1.888889 3.692308 3.750000 Gayan Jschaef Whitney 1.300000 2.285714 2.000000 ...and what I would like to generate is a set of indexed means for each column in the data set. Any guidance would be much appreciated! Best, Logan -- View this message in context: http://r.789695.n4.nabble.com/Conditional-Loop-For-Data-Frame-C...
2010 Dec 21
0
liquid include error please help
Hi All, I have been trying to get my following code working for almost 4 days and glad if you could help me. Basically what I want to do is to use liquid ''include'' tag I''m getting this error Liquid error: No such template ''test'' my code is as follows in my app/views/page/index.erb <% file_system =