search for: tp3737261p3737481

Displaying 1 result from an estimated 1 matches for "tp3737261p3737481".

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):