search for: mydata4

Displaying 5 results from an estimated 5 matches for "mydata4".

Did you mean: mydata
2013 May 11
1
How to repeat 2 functions in succession for 400 times? (microarray data)
Hi, May be this helps: ?set.seed(24) ?mydata4<- as.data.frame(matrix(sample(1:100,10*38,replace=TRUE),ncol=38)) ?dim(mydata4) #[1] 10 38 ?library(matrixStats) res<-do.call(cbind,lapply(1:400, function(i) {permutation<-sample(mydata4); (rowMeans(permutation[,1:27])-rowMeans(permutation[,28:38]))/(rowSds(permutation[,1:27])+rowSds(perm...
2009 Jul 28
1
Sort a dataframe on the column Date
Dear Users I have a dataframe called mydata4 of the following order with the first column as a date and the rest of the columns are numeric with rate. Column 1 Rate1 : Rate 20 (PxMid) 01/01/2003 07/01/2001 ---- ---- -- I wish to sort this dataframe on the first col in ascending order. I tried to do the following mydata4<-mydata4[...
2009 Aug 01
2
Add columns in a dataframe and fill them from another table according to a criteria
...c Pc1 Pc2 Pc3 Pc4 d Pd1 Pd2 Pd3 Pd4 and I have a dataframe(with 93 rows) called mydata part of which(6 rows) is given below where I want to fill in the last four columns with probabilities taken from States.Prob according to the change and state in mydata4:- Change State PState1 PState2 PState3 PState4 1 b State1 Pb1 2 a State4 Pa4 3 b State2 Pb2 4 c State3 Pc3 5 d State1 Pd1 6 a State3 Pa3 What...
2009 Jul 28
1
Sort a column in a dataframe
Dear Users This is my dataset called mydata4. I want to sort the dataframe on the first column PxMid which is basically a column with dates. I've tried mydata4<-mydata4[order(mydata4$PxMid),] but it doesnt work. Could it be because these are dates? Please help I'm really stuck !! Thank you for your time. Regards Meenu PxMid EU0...
2009 Jul 31
1
Fill dataframe from a table according to a criteria
...Pb1 Pb2 Pb3 Pb4 C Pc1 Pc2 Pc3 Pc4 D Pd1 Pd2 Pd3 Pd4 and I have a dataframe called mydata which is given below where I want to fill in the last four columns of probabilities taken from States.Prob according to the change and state in mydata4:- PxMid EU0006MIndex.x DMSW1Curncy.x DMSW2Curncy.x DMSW3Curncy.x 1 01/01/2003 2.80113 2.7070 2.8920 3.1720 2 01/01/2007 3.85350 4.0760 4.1250 4.1230 3 01/02/2002 3.41563 3.6385 4.0810 4.3587 4 01/02/2006 2.70...