search for: testmean

Displaying 2 results from an estimated 2 matches for "testmean".

Did you mean: testmeans
2005 May 22
3
comparison operator, decimals, and signif()
Hi, I recently spent quite a bit of time trouble shooting a function that I had written only to discover that the problem I was having was with the comparison operator. I assumed that the following would return TRUE: > testMean <- 82.8 + 0.1 > testMean [1] 82.9 > testMean == 82.9 [1] FALSE Apparently this has to do with deciml places. Look: > newTest <- 82.0 > newTest [1] 82 > newTest == 82 [1] TRUE > newTest == 82.0 [1] TRUE > What does signif() do to my object called "testMean"...
2008 Aug 12
1
Quickly calculating the mean results over a collection of data sets?
...read.table(x, header=TRUE)}) ### W, X, Y have (small) natural values w <- unique(testRuns[[1]]$W) x <- unique(testRuns[[1]]$X) y <- unique(testRuns[[1]]$Y) ### All runs have the same values for all columns ### with the exception of the Z values, so just ### copy the first test run data testMeans <- data.frame(testRuns[[1]]) for(w0 in w) { for(y0 in y) { for (x0 in x) { row <- which(testMeans$W == w0 & testMeans$Y == y0 & testMeans$X == x0) meanValues <- sapply(testRuns, function(r)...