R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(1772 + ,158258 + ,89 + ,20465 + ,1703 + ,186930 + ,57 + ,33629 + ,192 + ,7215 + ,18 + ,1423 + ,2294 + ,129098 + ,94 + ,25629 + ,3448 + ,230587 + ,134 + ,54002 + ,6813 + ,508313 + ,261 + ,151036 + ,1795 + ,180745 + ,56 + ,33287 + ,1680 + ,185559 + ,58 + ,31172 + ,1896 + ,154581 + ,43 + ,28113 + ,2917 + ,290658 + ,95 + ,57803 + ,1946 + ,121844 + ,75 + ,49830 + ,2148 + ,184039 + ,69 + ,52143 + ,1832 + ,100324 + ,98 + ,21055 + ,3059 + ,209427 + ,114 + ,47007 + ,1469 + ,167592 + ,57 + ,28735 + ,1565 + ,154593 + ,86 + ,59147 + ,1755 + ,142018 + ,56 + ,78950 + ,1234 + ,77855 + ,59 + ,13497 + ,2779 + ,167047 + ,87 + ,46154 + ,726 + ,27997 + ,24 + ,53249 + ,1048 + ,73019 + ,59 + ,10726 + ,2804 + ,241082 + ,99 + ,83700 + ,1760 + ,195820 + ,72 + ,40400 + ,2261 + ,141899 + ,53 + ,33797 + ,1848 + ,145433 + ,86 + ,36205 + ,1647 + ,180241 + ,31 + ,30165 + ,2081 + ,202232 + ,160 + ,58534 + ,1393 + ,190230 + ,91 + ,44663 + ,2741 + ,354924 + ,118 + ,92556 + ,2112 + ,192399 + ,44 + ,40078 + ,1684 + ,182286 + ,44 + ,34711 + ,1616 + ,181590 + ,45 + ,31076 + ,2227 + ,133801 + ,105 + ,74608 + ,3088 + ,233686 + ,123 + ,58092 + ,2388 + ,219428 + ,52 + ,42009 + ,1 + ,0 + ,1 + ,0 + ,2099 + ,223044 + ,63 + ,36022 + ,1669 + ,100129 + ,51 + ,23333 + ,2094 + ,136733 + ,47 + ,53349 + ,2153 + ,249965 + ,64 + ,92596 + ,2390 + ,242379 + ,71 + ,49598 + ,1701 + ,145794 + ,59 + ,44093 + ,983 + ,96404 + ,32 + ,84205 + ,2161 + ,195891 + ,78 + ,63369 + ,1276 + ,117156 + ,50 + ,60132 + ,1189 + ,157787 + ,94 + ,37403 + ,744 + ,81293 + ,31 + ,24460 + ,2231 + ,224049 + ,100 + ,46456 + ,2242 + ,223789 + ,87 + ,66616 + ,2638 + ,160344 + ,58 + ,41554 + ,658 + ,48188 + ,28 + ,22346 + ,1859 + ,152206 + ,68 + ,30874 + ,2489 + ,294283 + ,73 + ,68701 + ,2025 + ,235223 + ,78 + ,35728 + ,1911 + ,195583 + ,59 + ,29010 + ,1714 + ,145942 + ,54 + ,23110 + ,1851 + ,208834 + ,66 + ,38844 + ,980 + ,93764 + ,23 + ,27084 + ,1177 + ,151985 + ,66 + ,35139 + ,2809 + ,190545 + ,95 + ,57476 + ,1688 + ,148922 + ,60 + ,33277 + ,2097 + ,132856 + ,80 + ,31141 + ,1309 + ,126107 + ,60 + ,61281 + ,1243 + ,112718 + ,36 + ,25820 + ,1255 + ,160930 + ,34 + ,23284 + ,1293 + ,99184 + ,40 + ,35378 + ,2259 + ,182022 + ,69 + ,74990 + ,2897 + ,138708 + ,65 + ,29653 + ,1103 + ,114408 + ,38 + ,64622 + ,340 + ,31970 + ,15 + ,4157 + ,2791 + ,225558 + ,112 + ,29245 + ,1333 + ,137011 + ,71 + ,50008 + ,1441 + ,113612 + ,68 + ,52338 + ,1622 + ,108641 + ,70 + ,13310 + ,2649 + ,162203 + ,66 + ,92901 + ,1499 + ,100098 + ,44 + ,10956 + ,2302 + ,174768 + ,60 + ,34241 + ,2540 + ,158459 + ,97 + ,75043 + ,1000 + ,80934 + ,30 + ,21152 + ,1234 + ,84971 + ,71 + ,42249 + ,927 + ,80545 + ,68 + ,42005 + ,2176 + ,287191 + ,64 + ,41152 + ,956 + ,62974 + ,27 + ,14399 + ,1531 + ,130982 + ,38 + ,28263 + ,1013 + ,75555 + ,45 + ,17215 + ,1771 + ,162154 + ,54 + ,48140 + ,2613 + ,226638 + ,227 + ,62897 + ,1203 + ,115019 + ,110 + ,22883 + ,1303 + ,105038 + ,60 + ,41622 + ,1524 + ,155537 + ,52 + ,40715 + ,1829 + ,153133 + ,41 + ,65897 + ,2227 + ,165577 + ,76 + ,76542 + ,1233 + ,151517 + ,57 + ,37477 + ,1365 + ,133686 + ,58 + ,53216 + ,901 + ,58128 + ,38 + ,40911 + ,2319 + ,245196 + ,117 + ,57021 + ,1857 + ,195576 + ,70 + ,73116 + ,223 + ,19349 + ,12 + ,3895 + ,2390 + ,225371 + ,105 + ,46609 + ,1973 + ,152796 + ,76 + ,29351 + ,699 + ,59117 + ,28 + ,2325 + ,1062 + ,91762 + ,24 + ,31747 + ,1252 + ,127987 + ,52 + ,32665 + ,1154 + ,113552 + ,58 + ,19249 + ,823 + ,85338 + ,40 + ,15292 + ,596 + ,27676 + ,22 + ,5842 + ,1471 + ,147984 + ,47 + ,33994 + ,1130 + ,122417 + ,37 + ,13018 + ,0 + ,0 + ,0 + ,0 + ,1082 + ,91529 + ,32 + ,98177 + ,1134 + ,107205 + ,66 + ,37941 + ,1366 + ,144664 + ,44 + ,31032 + ,1452 + ,136540 + ,62 + ,32683 + ,869 + ,76656 + ,59 + ,34545 + ,78 + ,3616 + ,5 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1127 + ,183065 + ,43 + ,27525 + ,1578 + ,144636 + ,83 + ,66856 + ,2018 + ,156889 + ,97 + ,28549 + ,919 + ,113273 + ,38 + ,38610 + ,778 + ,43410 + ,19 + ,2781 + ,1751 + ,175774 + ,72 + ,41211 + ,956 + ,95401 + ,41 + ,22698 + ,1875 + ,118893 + ,54 + ,41194 + ,731 + ,60493 + ,40 + ,32689 + ,285 + ,19764 + ,12 + ,5752 + ,1833 + ,164062 + ,55 + ,26757 + ,1147 + ,132696 + ,32 + ,22527 + ,1646 + ,155367 + ,54 + ,44810 + ,256 + ,11796 + ,9 + ,0 + ,98 + ,10674 + ,9 + ,0 + ,1403 + ,142261 + ,56 + ,100674 + ,41 + ,6836 + ,3 + ,0 + ,1786 + ,154206 + ,61 + ,57786 + ,42 + ,5118 + ,3 + ,0 + ,528 + ,40248 + ,16 + ,5444 + ,0 + ,0 + ,0 + ,0 + ,1072 + ,122641 + ,46 + ,28470 + ,1305 + ,88837 + ,38 + ,61849 + ,81 + ,7131 + ,4 + ,0 + ,261 + ,9056 + ,14 + ,2179 + ,934 + ,76611 + ,24 + ,8019 + ,1179 + ,132697 + ,50 + ,39644 + ,1147 + ,100681 + ,19 + ,23494) + ,dim=c(4 + ,144) + ,dimnames=list(c('page_views' + ,'Time_spent' + ,'Logins' + ,'Writing') + ,1:144)) > y <- array(NA,dim=c(4,144),dimnames=list(c('page_views','Time_spent','Logins','Writing'),1:144)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'no' > par3 = '2' > par2 = 'equal' > par1 = '2' > library(party) Loading required package: survival Loading required package: splines Loading required package: grid Loading required package: modeltools Loading required package: stats4 Loading required package: coin Loading required package: mvtnorm Loading required package: zoo Loading required package: sandwich Loading required package: strucchange Loading required package: vcd Loading required package: MASS Loading required package: colorspace > library(Hmisc) Attaching package: 'Hmisc' The following object(s) are masked from 'package:survival': untangle.specials The following object(s) are masked from 'package:base': format.pval, round.POSIXt, trunc.POSIXt, units > par1 <- as.numeric(par1) > par3 <- as.numeric(par3) > x <- data.frame(t(y)) > is.data.frame(x) [1] TRUE > x <- x[!is.na(x[,par1]),] > k <- length(x[1,]) > n <- length(x[,1]) > colnames(x)[par1] [1] "Time_spent" > x[,par1] [1] 158258 186930 7215 129098 230587 508313 180745 185559 154581 290658 [11] 121844 184039 100324 209427 167592 154593 142018 77855 167047 27997 [21] 73019 241082 195820 141899 145433 180241 202232 190230 354924 192399 [31] 182286 181590 133801 233686 219428 0 223044 100129 136733 249965 [41] 242379 145794 96404 195891 117156 157787 81293 224049 223789 160344 [51] 48188 152206 294283 235223 195583 145942 208834 93764 151985 190545 [61] 148922 132856 126107 112718 160930 99184 182022 138708 114408 31970 [71] 225558 137011 113612 108641 162203 100098 174768 158459 80934 84971 [81] 80545 287191 62974 130982 75555 162154 226638 115019 105038 155537 [91] 153133 165577 151517 133686 58128 245196 195576 19349 225371 152796 [101] 59117 91762 127987 113552 85338 27676 147984 122417 0 91529 [111] 107205 144664 136540 76656 3616 0 183065 144636 156889 113273 [121] 43410 175774 95401 118893 60493 19764 164062 132696 155367 11796 [131] 10674 142261 6836 154206 5118 40248 0 122641 88837 7131 [141] 9056 76611 132697 100681 > if (par2 == 'kmeans') { + cl <- kmeans(x[,par1], par3) + print(cl) + clm <- matrix(cbind(cl$centers,1:par3),ncol=2) + clm <- clm[sort.list(clm[,1]),] + for (i in 1:par3) { + cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='') + } + cl$cluster <- as.factor(cl$cluster) + print(cl$cluster) + x[,par1] <- cl$cluster + } > if (par2 == 'quantiles') { + x[,par1] <- cut2(x[,par1],g=par3) + } > if (par2 == 'hclust') { + hc <- hclust(dist(x[,par1])^2, 'cen') + print(hc) + memb <- cutree(hc, k = par3) + dum <- c(mean(x[memb==1,par1])) + for (i in 2:par3) { + dum <- c(dum, mean(x[memb==i,par1])) + } + hcm <- matrix(cbind(dum,1:par3),ncol=2) + hcm <- hcm[sort.list(hcm[,1]),] + for (i in 1:par3) { + memb[memb==hcm[i,2]] <- paste('C',i,sep='') + } + memb <- as.factor(memb) + print(memb) + x[,par1] <- memb + } > if (par2=='equal') { + ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep='')) + x[,par1] <- as.factor(ed) + } > table(x[,par1]) C1 C2 139 5 > colnames(x) [1] "page_views" "Time_spent" "Logins" "Writing" > colnames(x)[par1] [1] "Time_spent" > x[,par1] [1] C1 C1 C1 C1 C1 C2 C1 C1 C1 C2 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 [26] C1 C1 C1 C2 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 [51] C1 C1 C2 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 [76] C1 C1 C1 C1 C1 C1 C2 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 [101] C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 [126] C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 Levels: C1 C2 > if (par2 == 'none') { + m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x) + } > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > if (par2 != 'none') { + m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x) + if (par4=='yes') { + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'',1,TRUE) + a<-table.element(a,'Prediction (training)',par3+1,TRUE) + a<-table.element(a,'Prediction (testing)',par3+1,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'Actual',1,TRUE) + for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE) + a<-table.element(a,'CV',1,TRUE) + for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE) + a<-table.element(a,'CV',1,TRUE) + a<-table.row.end(a) + for (i in 1:10) { + ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1)) + m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,]) + if (i==1) { + m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,]) + m.ct.i.actu <- x[ind==1,par1] + m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,]) + m.ct.x.actu <- x[ind==2,par1] + } else { + m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,])) + m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1]) + m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,])) + m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1]) + } + } + print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred)) + numer <- 0 + for (i in 1:par3) { + print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,])) + numer <- numer + m.ct.i.tab[i,i] + } + print(m.ct.i.cp <- numer / sum(m.ct.i.tab)) + print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred)) + numer <- 0 + for (i in 1:par3) { + print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,])) + numer <- numer + m.ct.x.tab[i,i] + } + print(m.ct.x.cp <- numer / sum(m.ct.x.tab)) + for (i in 1:par3) { + a<-table.row.start(a) + a<-table.element(a,paste('C',i,sep=''),1,TRUE) + for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj]) + a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4)) + for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj]) + a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4)) + a<-table.row.end(a) + } + a<-table.row.start(a) + a<-table.element(a,'Overall',1,TRUE) + for (jjj in 1:par3) a<-table.element(a,'-') + a<-table.element(a,round(m.ct.i.cp,4)) + for (jjj in 1:par3) a<-table.element(a,'-') + a<-table.element(a,round(m.ct.x.cp,4)) + a<-table.row.end(a) + a<-table.end(a) + table.save(a,file="/var/www/rcomp/tmp/1qhqs1345379661.tab") + } + } > m Conditional inference tree with 2 terminal nodes Response: as.factor(Time_spent) Inputs: page_views, Logins, Writing Number of observations: 144 1) page_views <= 2390; criterion = 1, statistic = 23.88 2)* weights = 128 1) page_views > 2390 3)* weights = 16 > postscript(file="/var/www/rcomp/tmp/2ios61345379661.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(m) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/318jd1345379661.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response') > dev.off() null device 1 > if (par2 == 'none') { + forec <- predict(m) + result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec)) + colnames(result) <- c('Actuals','Forecasts','Residuals') + print(result) + } > if (par2 != 'none') { + print(cbind(as.factor(x[,par1]),predict(m))) + myt <- table(as.factor(x[,par1]),predict(m)) + print(myt) + } [,1] [,2] [1,] 1 1 [2,] 1 1 [3,] 1 1 [4,] 1 1 [5,] 1 1 [6,] 2 1 [7,] 1 1 [8,] 1 1 [9,] 1 1 [10,] 2 1 [11,] 1 1 [12,] 1 1 [13,] 1 1 [14,] 1 1 [15,] 1 1 [16,] 1 1 [17,] 1 1 [18,] 1 1 [19,] 1 1 [20,] 1 1 [21,] 1 1 [22,] 1 1 [23,] 1 1 [24,] 1 1 [25,] 1 1 [26,] 1 1 [27,] 1 1 [28,] 1 1 [29,] 2 1 [30,] 1 1 [31,] 1 1 [32,] 1 1 [33,] 1 1 [34,] 1 1 [35,] 1 1 [36,] 1 1 [37,] 1 1 [38,] 1 1 [39,] 1 1 [40,] 1 1 [41,] 1 1 [42,] 1 1 [43,] 1 1 [44,] 1 1 [45,] 1 1 [46,] 1 1 [47,] 1 1 [48,] 1 1 [49,] 1 1 [50,] 1 1 [51,] 1 1 [52,] 1 1 [53,] 2 1 [54,] 1 1 [55,] 1 1 [56,] 1 1 [57,] 1 1 [58,] 1 1 [59,] 1 1 [60,] 1 1 [61,] 1 1 [62,] 1 1 [63,] 1 1 [64,] 1 1 [65,] 1 1 [66,] 1 1 [67,] 1 1 [68,] 1 1 [69,] 1 1 [70,] 1 1 [71,] 1 1 [72,] 1 1 [73,] 1 1 [74,] 1 1 [75,] 1 1 [76,] 1 1 [77,] 1 1 [78,] 1 1 [79,] 1 1 [80,] 1 1 [81,] 1 1 [82,] 2 1 [83,] 1 1 [84,] 1 1 [85,] 1 1 [86,] 1 1 [87,] 1 1 [88,] 1 1 [89,] 1 1 [90,] 1 1 [91,] 1 1 [92,] 1 1 [93,] 1 1 [94,] 1 1 [95,] 1 1 [96,] 1 1 [97,] 1 1 [98,] 1 1 [99,] 1 1 [100,] 1 1 [101,] 1 1 [102,] 1 1 [103,] 1 1 [104,] 1 1 [105,] 1 1 [106,] 1 1 [107,] 1 1 [108,] 1 1 [109,] 1 1 [110,] 1 1 [111,] 1 1 [112,] 1 1 [113,] 1 1 [114,] 1 1 [115,] 1 1 [116,] 1 1 [117,] 1 1 [118,] 1 1 [119,] 1 1 [120,] 1 1 [121,] 1 1 [122,] 1 1 [123,] 1 1 [124,] 1 1 [125,] 1 1 [126,] 1 1 [127,] 1 1 [128,] 1 1 [129,] 1 1 [130,] 1 1 [131,] 1 1 [132,] 1 1 [133,] 1 1 [134,] 1 1 [135,] 1 1 [136,] 1 1 [137,] 1 1 [138,] 1 1 [139,] 1 1 [140,] 1 1 [141,] 1 1 [142,] 1 1 [143,] 1 1 [144,] 1 1 C1 C2 C1 139 0 C2 5 0 > postscript(file="/var/www/rcomp/tmp/42tcq1345379661.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if(par2=='none') { + op <- par(mfrow=c(2,2)) + plot(density(result$Actuals),main='Kernel Density Plot of Actuals') + plot(density(result$Residuals),main='Kernel Density Plot of Residuals') + plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals') + plot(density(result$Forecasts),main='Kernel Density Plot of Predictions') + par(op) + } > if(par2!='none') { + plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted') + } > dev.off() null device 1 > if (par2 == 'none') { + detcoef <- cor(result$Forecasts,result$Actuals) + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Goodness of Fit',2,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'Correlation',1,TRUE) + a<-table.element(a,round(detcoef,4)) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'R-squared',1,TRUE) + a<-table.element(a,round(detcoef*detcoef,4)) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'RMSE',1,TRUE) + a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4)) + a<-table.row.end(a) + a<-table.end(a) + table.save(a,file="/var/www/rcomp/tmp/5mfrw1345379661.tab") + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Actuals, Predictions, and Residuals',4,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'#',header=TRUE) + a<-table.element(a,'Actuals',header=TRUE) + a<-table.element(a,'Forecasts',header=TRUE) + a<-table.element(a,'Residuals',header=TRUE) + a<-table.row.end(a) + for (i in 1:length(result$Actuals)) { + a<-table.row.start(a) + a<-table.element(a,i,header=TRUE) + a<-table.element(a,result$Actuals[i]) + a<-table.element(a,result$Forecasts[i]) + a<-table.element(a,result$Residuals[i]) + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/www/rcomp/tmp/6k76k1345379661.tab") + } > if (par2 != 'none') { + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'',1,TRUE) + for (i in 1:par3) { + a<-table.element(a,paste('C',i,sep=''),1,TRUE) + } + a<-table.row.end(a) + for (i in 1:par3) { + a<-table.row.start(a) + a<-table.element(a,paste('C',i,sep=''),1,TRUE) + for (j in 1:par3) { + a<-table.element(a,myt[i,j]) + } + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/www/rcomp/tmp/7f3h61345379662.tab") + } > > try(system("convert tmp/2ios61345379661.ps tmp/2ios61345379661.png",intern=TRUE)) character(0) > try(system("convert tmp/318jd1345379661.ps tmp/318jd1345379661.png",intern=TRUE)) character(0) > try(system("convert tmp/42tcq1345379661.ps tmp/42tcq1345379661.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.680 0.100 1.789