[Swift-commit] r2137 - SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/permutations/scripts

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Jul 18 13:17:54 CDT 2008


Author: skenny
Date: 2008-07-18 13:17:53 -0500 (Fri, 18 Jul 2008)
New Revision: 2137

Added:
   SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/permutations/scripts/generateConfigFile.R
Log:
config generator

Added: SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/permutations/scripts/generateConfigFile.R
===================================================================
--- SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/permutations/scripts/generateConfigFile.R	                        (rev 0)
+++ SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/permutations/scripts/generateConfigFile.R	2008-07-18 18:17:53 UTC (rev 2137)
@@ -0,0 +1,9 @@
+cc <- as.vector(c(rep(0,12),rep(1,12)))
+con <- matrix(nrow=4000,ncol=27)
+mat_row <- 0;
+
+for (i in 1:nrow(con)){
+    mat_row <- mat_row + 1
+    con[mat_row,] <- c(sample(cc),sample(1:3))
+}
+write.table(con,file="perm_config_file.txt",row.names=FALSE,col.names=FALSE,quote=FALSE)




More information about the Swift-commit mailing list