search for: tab_tmp

Displaying 2 results from an estimated 2 matches for "tab_tmp".

Did you mean: tab_tmp1
2005 Dec 07
2
concatenate data frame
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 output: Error in attach(tab) : attach only...
2005 Dec 08
1
truncate/overwrite a data frame
...ap): tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),1:length(tab)]<-tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),1:length(tab)]; My second idea was to make 2 tab without the overlap, then put them together: tab_tmp<-tab[1:(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+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),1:length(tab)]; tab<-as.data.frame(c(tab_tmp, tab_tmp1)); attach(tab); In these 2 case it didn't succee...