Hi everyone,

Is there any command for updating table withing a loop?  For instance, at i, I 
have a table as ZZ = table(data.raw[1:ind[i]]) where "ind" = c(10, 20, 30, 
...).  Then , ZZ will be as follow

"A" "B" "C"
 3    10   2

At (i + 1), ZZ = table(data.raw[(ind[i]+1):ind[i+1]])

"A" "B" "D"
 4    7    8

Is there any command that can update the table ZZ for each time so that in the 
above example, ZZ will be

"A" "B" "C" "D"
 7    17   2    8

Thanks.

liu



      
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to