search for: dftest1

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

Did you mean: dftest
2012 May 04
1
Absolute cumulative curve with ecdf/stepfun?
...which gives a relative curve. I also want to do the same plot but using absolute cumulative values instead of relative. Can that be done with ecdf or with stepfun() to get values I can use to plot the curves? Here a small example that shows the result with ecdf: library(ggplot2) library(reshape) dftest1 <- data.frame(value=runif(1000,0,1),variable=rep(c("a","b"),c(500,500))) dftest2 <- ddply(dftest1,.(variable),transform, ecd = ecdf(value)(value)) ggplot(dftest2,aes(x = value, y = ecd)) + geom_line(aes(group = variable,colour = variable)) I'd like to replace the...
2008 Mar 10
2
write.table with row.names=FALSE unnecessarily slow?
...)) + d <- list(if (makeRownames==TRUE) row.names(x) else NULL, + if (makeColnames==TRUE) names(x) else NULL) p <- ncol(x) } nocols <- p==0 improves performance at least in proportion to nrow(x): > system.time({ + write.table(df, '/tmp/dftest1.txt', row.names=FALSE) + }, gcFirst=TRUE) user system elapsed 8.132 0.608 8.899 Martin -- Martin Morgan Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M2 B169 Phone: (206) 667-2793