Skip to content
Prev 141054 / 398498 Next

loop? apply? I want to repeat a task through 208 itterations.

I think this is what you want to do.  I did not have 'shaprio.test' so
I just returned a value:
+ #subset of data
+ 13, 17, 13, 19, 13, 14, 14, 15, 15, 14, 16, 14, 15, 13, 14),
+    NSCl = c(NA, NA, 2.9, NA, NA, NA, NA, NA, NA, NA, NA, NA,
+    NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA)), .Names = c("RM215alk",
+ "NSCl"), class = "data.frame", row.names = c(NA, -24L))
+     if (sum(!is.na(.col)) >= 3) 3 # I don't have this function:
shaprio.test(.col)
+     else NULL
+ })
$RM215alk
[1] 3

$NSCl
NULL
On Fri, Apr 4, 2008 at 10:44 AM, stephen sefick <ssefick at gmail.com> wrote: