我有2个载体:填补了一个表中的R
c1 <- c(1,2,0,1,3,4,5,6,1,2,3,0)
c2 <- c(1,2,0,5,0,2,1)
> table(c1)
c1
0 1 2 3 4 5 6
2 3 2 2 1 1 1
> table(c2)
c2
0 1 2 5
2 2 2 1
现在我想c2
有以下形式:
> table(c2)
c2
0 1 2 3 4 5 6
2 2 2 0 0 1 0
我怎样才能摆脱这些表的载体(2,3,2,2,1,1,1)和(2,2,2,0,0,1,0)?
也[**这**](http://stackoverflow.com/questions/19773435/how-can-见你的力量包含在一个表中的水平/ 19773510#19773510)或[**这**](http://stackoverflow.com/questions/1617061/including-absent - 值功能于表成果在-R/1617150#1617150)。 – Henrik 2014-11-06 14:48:22