[R] Re place many rows in a table with new rows in one step

Zhen Lin orangedandelion at gmail.com
Fri Oct 9 12:42:32 CEST 2009


I tried this:
(c is the column vector with indices of those rows I want to replace)

table[c,]<-replace(table[c,],c,newRows)

but it does not work and the error is:
new columns would leave holes after existing columns

Can anyone help please?

Thanks
-- 
View this message in context: http://www.nabble.com/Replace-many-rows-in-a-table-with-new-rows-in-one-step-tp25819016p25819016.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list