search for: newrow2

Displaying 1 result from an estimated 1 matches for "newrow2".

Did you mean: newrow
2013 May 01
1
Combine multiple tables into one
...- rbind(row3, row4) >table1 ?> ? ? ? ? [,1] [,2] >row1 ? ?1 ? ?1 >row2 ? ?1 ? ?2 >table2 ? >? ? ? ? [,1] [,2] >row3 ? ?0 ? ?1 >row4 ? ?0 ? ?4 > >To this: > >#What the combined table should look like if things worked out >newrow1 <- c(1,1,0,0) >newrow2 <- c(1,2,0,0) >newrow3 <- c(0,0,0,1) >newrow4 <- c(0,0,0,4) >combinedtable <- rbind(newrow1, newrow2, newrow3, newrow4) >combinedtable ? >? ? ? ? ? ? ? ? [,1] [,2] [,3] [,4] >newrow1 ? ?1 ? ?1 ? ?0 ? ?0 >newrow2 ? ?1 ? ?2 ? ?0 ? ?0 >newrow3 ? ?0 ? ?0 ? ?0...