Re: [R] concatenate data frame

2005-12-08 Thread Don MacQueen
Having no idea what the object no is, or what the object off_set is, it is difficult to understand what you are trying to do. Perhaps if you substituted simple numbers in the example, such as tab[ 1:5, 15] it would be easier to understand. Perhaps what you really want is cbind() or

[R] concatenate data frame

2005-12-07 Thread [EMAIL PROTECTED]
hi all Here is a small part of my code: tab_tmp-tab[1:(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])),length(tab)]; tab_tmp1-tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),length(tab)]; tab-c(tab_tmp,tab_tmp1); attach(tab); Here is the

Re: [R] concatenate data frame

2005-12-07 Thread P Ehlers
Guillaume, I assume that 'tab' is a data frame and that, for some unspecified reason, you want to get two subsets of the last column of tab, overlapping one case, and coercing the final result to a data frame. If that is correct, then as.data.frame(c(tab_tmp, tab_tmp1)) will give you a data