search for: d2p

Displaying 4 results from an estimated 4 matches for "d2p".

Did you mean: 2p
2011 Aug 11
2
sapply( ) a loop function
Hello R-universe... I am having trouble writing a function which contains a loop so I can sapply() it to a list of data frames Each data frame has 241 observations of 15 variables. My loop takes a random sample of one row until the 40 consecutive rows after the sample have a d2p(variable) sum greater than 5. here is my loop code (it works fine when applied to a 241 observation data frame): n<-241 test<-0 while(test<5){ i<-sample(1:n-40,1) x<-my.data.frame[seq(from=i, to=i+40),] test<-sumx[,"d2p"],na.rm=TRUE) }; i ; test I need this...
2011 Jul 21
1
Select Random Rows from a dataframe
Hi all, I have a dataframe of behavioral observations from 360 fish, each with 241 observation points(rows), which looks like this: > head(d) fish treatment tank trial video tid pid ang.chg abs.ac t len vel d2p x y 1 1 3 1 1 1 1 1 NA NA 0.0 0.000 NA NA 5.169 9.617 2 1 3 1 1 1 1 2 NA NA 0.5 0.203 0.405 0.203 5.254 9.433 3 1 3 1...
2011 Jul 22
1
applying a loop to multiple dataframes
Hello again R-folks, I'm trying to apply a loop to multiple data frames and then organize the data in a manageable form. I have the code for my loop figured out (thanks to help from this list)...it runs up to 2000 iterations of a "while" loop until it finds a 40-row "d2p" column sum >5 n<-nrow(dsub.f1) test<-0 for(k in 1:2001){ if(k>2000){ break} #stops after 2000 iterations else{ while(test<5){ #continues unti sum>5, or 2000 iter. i<-sample(1:n-40,1) x<-dsub.f1[seq(from=i, to=i+40),] test<-sum(x[,"d2p"],na.rm=TRU...
2012 Jun 24
0
nouveau _BIOS method
...0f ........{DID7... 0550: 00 0b 06 03 a4 00 a0 10 93 7b 44 49 44 38 0b 0f .........{DID8.. 0560: 0f 00 0b 06 03 a4 00 70 4e 44 49 44 5f 54 5f 30 .......pNDID_T_0 0570: a0 18 93 5f 54 5f 30 01 70 0c 06 03 01 80 44 49 ..._T_0.p.....DI 0580: 44 32 70 0a 02 4e 44 49 44 a1 4e 0b a0 19 93 5f D2p..NDID.N...._ 0590: 54 5f 30 0a 02 70 0c 06 03 01 80 44 49 44 33 70 T_0..p.....DID3p 05a0: 0a 03 4e 44 49 44 a1 41 0a a0 19 93 5f 54 5f 30 ..NDID.A...._T_0 05b0: 0a 03 70 0c 06 03 01 80 44 49 44 34 70 0a 04 4e ..p.....DID4p..N 05c0: 44 49 44 a1 44 08 a0 19 93 5f 54 5f 30 0a 04 70 DID.D.....