R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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 <- c(303584 + ,13030 + ,13044 + ,-14 + ,63 + ,49 + ,-3 + ,303630 + ,305296 + ,16218 + ,16310 + ,-92 + ,1141 + ,1049 + ,-4 + ,306341 + ,302605 + ,14883 + ,14039 + ,844 + ,132 + ,976 + ,3 + ,303584 + ,304061 + ,21360 + ,20649 + ,711 + ,114 + ,825 + ,410 + ,305296 + ,303630 + ,18625 + ,18344 + ,281 + ,156 + ,437 + ,-6 + ,304061 + ,303630 + ,12950 + ,13037 + ,-87 + ,86 + ,-1 + ,1 + ,303630 + ,314798 + ,13202 + ,12969 + ,233 + ,95 + ,328 + ,-559 + ,314567 + ,321103 + ,11725 + ,10895 + ,830 + ,86 + ,916 + ,646 + ,322665 + ,323104 + ,15490 + ,16745 + ,-1257 + ,1196 + ,-61 + ,1 + ,323046 + ,312417 + ,16495 + ,15177 + ,1318 + ,95 + ,1413 + ,2 + ,313832 + ,306341 + ,22712 + ,20258 + ,2454 + ,3624 + ,6078 + ,-2 + ,312417 + ,320414 + ,14843 + ,14253 + ,590 + ,98 + ,688 + ,1 + ,321103 + ,317969 + ,14402 + ,12057 + ,2345 + ,101 + ,2446 + ,-1 + ,320414 + ,313832 + ,14541 + ,13701 + ,840 + ,125 + ,965 + ,1 + ,314798 + ,314567 + ,15541 + ,12229 + ,3312 + ,84 + ,3396 + ,6 + ,317969 + ,322901 + ,18053 + ,18087 + ,-34 + ,233 + ,199 + ,4 + ,323104 + ,322694 + ,17180 + ,17092 + ,88 + ,118 + ,206 + ,1 + ,322901 + ,322665 + ,10993 + ,11076 + ,-83 + ,111 + ,28 + ,1 + ,322694 + ,327678 + ,14038 + ,15096 + ,-1058 + ,92 + ,-966 + ,29 + ,326741 + ,330154 + ,18867 + ,19876 + ,-1009 + ,91 + ,-918 + ,-1 + ,329235 + ,326259 + ,17416 + ,19663 + ,-2247 + ,1294 + ,-953 + ,1 + ,325307 + ,327976 + ,15960 + ,16389 + ,-429 + ,113 + ,-316 + ,0 + ,327660 + ,323046 + ,22280 + ,20738 + ,1542 + ,3391 + ,4933 + ,-3 + ,327976 + ,330573 + ,18917 + ,19456 + ,-539 + ,118 + ,-421 + ,2 + ,330154 + ,329491 + ,12811 + ,11804 + ,1007 + ,89 + ,1096 + ,-14 + ,330573 + ,327660 + ,12965 + ,13098 + ,-133 + ,149 + ,16 + ,2 + ,327678 + ,326741 + ,17127 + ,14499 + ,2628 + ,121 + ,2749 + ,1 + ,329491 + ,327513 + ,15870 + ,17206 + ,-1336 + ,83 + ,-1253 + ,-1 + ,326259 + ,328686 + ,12869 + ,14125 + ,-1256 + ,86 + ,-1170 + ,-3 + ,327513 + ,329235 + ,11263 + ,11909 + ,-646 + ,97 + ,-549 + ,0 + ,328686 + ,329493 + ,13279 + ,13220 + ,59 + ,76 + ,135 + ,7 + ,329635 + ,329366 + ,11051 + ,11715 + ,-664 + ,83 + ,-581 + ,3 + ,328788 + ,325307 + ,19234 + ,17904 + ,1330 + ,2728 + ,4058 + ,1 + ,329366 + ,335030 + ,13468 + ,14214 + ,-746 + ,121 + ,-625 + ,-209 + ,334196 + ,334003 + ,13837 + ,12878 + ,959 + ,66 + ,1025 + ,2 + ,335030 + ,328788 + ,13734 + ,13113 + ,621 + ,83 + ,704 + ,1 + ,329493 + ,329635 + ,16810 + ,12517 + ,4293 + ,76 + ,4369 + ,-1 + ,334003) > par4 = '12' > par3 = 'Spaartegoeden en spaargedrag' > par2 = 'www.cbs.nl' > par1 = 'Spaartegoeden' > ylimmax = '' > ylimmin = '' > ylab = 'value' > xlab = 'index or time' > main = 'Univariate Data' > if (par4 != 'No season') { + par4 <- as.numeric(par4) + if (par4 < 4) par4 <- 12 + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. -2247 83 8486 84430 92690 335000 > n <- length(x) > postscript(file="/var/wessaorg/rcomp/tmp/1bn5o1411215677.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par4=='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,10)) + } > if (par4!='No season') { + plot(x,col=2,type='b',main=main,xlab=xlab,ylab=ylab,xaxt='n') + axis(1,at=seq(1,n,par4)) + grid(nx=0,ny=NULL,col='black') + abline(v=seq(1,n,par4),col='black',lty='dotted') + } > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Univariate Dataseries',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Name of dataseries',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Source',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Description',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Number of observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2okeg1411215677.tab") > > try(system("convert tmp/1bn5o1411215677.ps tmp/1bn5o1411215677.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.655 0.099 0.755