search for: val_user

Displaying 3 results from an estimated 3 matches for "val_user".

2012 Mar 08
8
Copy dataframe for another
I'm trying to copy the results of a dataframe to another within a cycle for but I am not able to implement the rbind, because give th d<-Null df<-NULL for(r in 2: nrow(x)) { val_user<-x.name[[r]] pos<-x.pos[[r]] -4 age <-x.age[[r]] d<-data.frame(val_user,pos,) print(d) } df<-rbind(df,d) } someone can help me solve this Thanks -- View this message in context: http://r.789695.n4.nabble.com/Copy-dataframe-for-another-tp4456879p445...
2012 Apr 06
4
Order sapply
Good Afternoon, I have the following code, but it seems that something must be doing wrong, because it is giving the results I want. The idea is to create segments while the value of Commutation is less than 1000. for example, from the small set of data below text=" val_user pos v v_star v_end commutation v_source v_destine 1 1 96-96 1173438391 1173438391 0 96 96 3 2 126-126 1172501729 1172501532 197 126 126 3 3 126-35 1174404177 1172501909 1902268 126 35 3 4 35-56 1174404252 117...
2012 Mar 07
4
Subset problem
...I have a small question regarding the function subset. I am copying data from one table but I just want to collect data from a user. When do I take the view, presents the results I want. The problem arises when can I make the tab. for RES_ID, introduces me to zero results do not envision noVIEW val_user='16' x.sub <- data.frame(subset(Dataset,Dataset$USER==val_user)) View(x.sub) lev_ID<-levels(x.sub$RES_ID) res<-table(x.sub$RES_ID) res E000- 0 F160- 0 XFRT- 33 XVVR- 0 SWEX- 23 SWRS- 0 just wanted to see the data with values ??greater than 0 in the example only two results...