search for: dumpdata

Displaying 20 results from an estimated 33 matches for "dumpdata".

Did you mean: dump_data
2010 Apr 29
3
dump not evaluating promises?
I'm using the dump command to pass data to WinBUGS/OpenBUGS/JAGS and have run into a problem. Here is some R-code: foo <- array(1:6, dim=c(2,3)) dump('foo', file='dumpdata.R') dump('foo', file='dumpdata.R', append=TRUE, evaluate=TRUE) foo2 <- array(c(2,3,5,7,9,7,5,3), dim=c(2,4)) dump('foo2', file='dumpdata.R', append=TRUE) And here is the file dumpdata.R: foo <- structure(1:6, .Dim = 2:3) foo <- structure(1:6, .Dim = 2:3...
2011 Aug 01
4
Use dump or write? or what?
...t t-tests. (maybe too tired ;} ) I have tried to use "dump" and "file.append" to no avial. ttest_results = tempfile() two_sample_ttest <- t.test (tempA, tempB, var.equal = TRUE) welch_ttest <- t.test (tempA, tempB, var.equal = FALSE) dump (two_sample_ttest, file = "dumpdata.txt"", append=TRUE) ttest_results <- file.append (ttest_results, two_sample_ttest) Any suggestions, M -- Matt Curcio M: 401-316-5358 E: matt.curcio.ri at gmail.com
1999 Mar 31
2
"dump" Splus -> R
...quot;; $OS="<-"; while(<>) { s/call\s*=(.*?),(\s+?)class/call=as.call(expression($1)),$2 class/s; print $_; } ---------end translate.dump.pl---------- Now the data can be transfered by : Splus on Unix: > dump(ls()) Downloading the resulting "dumpdata" file. Linux shell: $ translate.dump.pl < dumpdata > dumpdata.fixed R on Linux: > source("dumpdata.fixed") Just thought this might help someone out... -Greg **The only exception was the ".Last.warning" object, which contained something like...
1999 Mar 31
2
"dump" Splus -> R
...quot;; $OS="<-"; while(<>) { s/call\s*=(.*?),(\s+?)class/call=as.call(expression($1)),$2 class/s; print $_; } ---------end translate.dump.pl---------- Now the data can be transfered by : Splus on Unix: > dump(ls()) Downloading the resulting "dumpdata" file. Linux shell: $ translate.dump.pl < dumpdata > dumpdata.fixed R on Linux: > source("dumpdata.fixed") Just thought this might help someone out... -Greg **The only exception was the ".Last.warning" object, which contained something like...
2003 Aug 06
1
contour lines intersect
Hi, Sorry if this is already known... contour() sometimes draws contour lines that intersect. Is there a temporary fix? A dataset which causes problems is at http://www.maths.uwa.edu.au/~adrian/dumpdata.R If you try just source("dumpdata.R") image(huh) contour(huh) the 100 x 100 matrix 'huh' contains an hourglass-shaped region of values around 0.8. The contour plot shows two contour lines at the level 0.8 which cross each other in a figure 8. In the short term can anyon...
2007 May 28
1
where did the factor name go
...11 -1.25444287 c 12 -0.97251060 d > tmp.aov <- aov(y ~ a, data=tmp) > summary(tmp.aov) Df Sum Sq Mean Sq F value Pr(>F) a 3 1.5220 0.5073 0.6973 0.5794 Residuals 8 5.8209 0.7276 > dump("tmp.aov") > rm(tmp.aov) > source("dumpdata.R") > ls() [1] "tmp" "tmp.aov" > summary(tmp.aov) Df Sum Sq Mean Sq F value Pr(>F) NA 3 1.5220 0.5073 0.6973 0.5794 Residuals 8 5.8209 0.7276 > The factor name in the summary() after dumping and sourcing the aov...
1999 Apr 22
0
mvfft
...ere where kspan is the increment for k1 and decrement for k2. The loop breaks when k1 < k2, but somehow kspan is zero. How it got there, I can't say, as we're in goto hell at this point. Martyn --_=XFMail.1.3.p0.Linux:990422185944:4782=_ Content-Disposition: attachment; filename="dumpdata" Content-Transfer-Encoding: 7bit Content-Description: dumpdata Content-Type: text/plain; charset=us-ascii; name=dumpdata; SizeOnDisk=946 "xx" <- structure(c(2.80791, 2.92504, 3.02911, 2.85911, 3.28071, 3.43015, 2.3898, 1.67055, 3.81164, 2.43832, 2.92065, 1.37547, 3.23811, 2.962...
2002 Feb 20
1
plot.hclust: strange behaviour with "manufactured" hclust object
...R Development Core Team Version 1.4.1 (2002-01-30) ......(stuff deleted) > set.seed(103) > library(mva) > x <- matrix(rnorm(5*2),ncol=2) > x.hc <- hclust(dist(x),method='average') > plot.hclust(x.hc) # the above works > dump('x.hc') > source('dumpdata.R') > plot.hclust(x.hc) Error in plot.hclust(x.hc) : invalid dendrogram input One hypothesis I had was that it might be something like the "call" object that wasn't correctly being re-created by the dump & source, but that doesn't seem to be it. Below, I remove everyt...
1999 Apr 22
1
mvfft (PR#176)
...ere where kspan is the increment for k1 and decrement for k2. The loop breaks when k1 < k2, but somehow kspan is zero. How it got there, I can't say, as we're in goto hell at this point. Martyn --_=XFMail.1.3.p0.Linux:990422185944:4782=_ Content-Disposition: attachment; filename="dumpdata" Content-Transfer-Encoding: 7bit Content-Description: dumpdata Content-Type: text/plain; charset=us-ascii; name=dumpdata; SizeOnDisk=946 "xx" <- structure(c(2.80791, 2.92504, 3.02911, 2.85911, 3.28071, 3.43015, 2.3898, 1.67055, 3.81164, 2.43832, 2.92065, 1.37547, 3.23811, 2.962...
2007 Oct 30
2
R can't source() long lines (PR#10383)
...itten code won't contain lines that long, dump()ed data structures may reasonably contain strings longer than that (as in my case). What's more, R will happily help you to create such files: x = paste(rep("12345678", 1024), collapse="") dump("x") source("dumpdata.R") ## this fails (on Linux & Vista) I'm now using save/load, which is probably better in that case anyway. Still, I would be nice if source() worked or at least dump() would break lines to avoid this issue. Best regards, Martin Kober
2011 Jun 29
2
parse XML file
Hi all, this is my first post in this mailing group. I hope that anyboby could help me parsing a xml file. I found this website http://www.omegahat.org/RSXML/gettingStarted.html but unfortunately my XML file is not as easy as the one in the example. Example: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet
2002 Feb 21
0
plot.hclust: strange behaviour with "manufactured"
This worked for me with your example: source("dumpdata.R") storage.mode(x.hc$merge) <- "integer" plot(x.hc) (R-1.4.1 compiled from source on WinNT4.) Andy > -----Original Message----- > From: Hugh Chipman [mailto:hachipma at icarus.math.uwaterloo.ca] > Sent: Wednesday, February 20, 2002 5:32 PM > To: andy_liaw at merck....
2001 Aug 14
1
safe data.restore
(R 1.3.0, ESS, Emacs, Windows) I would like to import a set of objects exported from S+ v. 6, beta2 using data.dump, but I want to make sure that it does not overwrite current objects I am using in R. How would I route the output of data.restore() to ensure the safety of my current objects? Thanks very much, Henry ***************************** Martin Henry H. Stevens HStevens at muohio.edu tel:
2007 Jul 29
2
array writing and their filenames
Hi, I want to save a array (say, array[6,7,8]) write a cvs file. How can I do that??? can I write in one file? if I could not write in one file, i want to use a loop to save in different files (in the matrix[6,7,8], should be 8 csv files), such as the filename structure should be: file ="filename" +str(i) +"." +"csv" Many thanks. Dong [[alternative HTML version
2001 Jun 29
1
KS test in R.1.3.0 has incorrect p-values. (PR#1004)
....047605e-08 > ks.test(x,y, exact=F)$p [1] 3.099506e-07 > y<-rnorm(50) > ks.test(x,y, exact=T)$p [1] 0.02015456 > ks.test(x,y, exact=F)$p [1] 0.9971923 I'll commit the obvious fix unless anyone knows better. Neither value agrees well with S-PLUS 6, which gives > source("dumpdata.R") > ks.gof(x, y)$p [1] 1.453458e-07 -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (se...
2012 Feb 20
4
r: (1, 'Internal error', 'panic: xc_dom_core.c:273: xc_dom_do_gunzip: inflate failed (rc=-3)').. only on Intel hardware and only under 32-bit dom0
The combination is bit awkward so not sure why this is happening, but with Xen 4.1.x hypervisor (64-bit), with a 32-bit dom0 (3.3-rcX or 3.2) and with a 3.3-rcX or 3.2 domU I get this: sh-4.1# Feb 20 17:47:41 tst006 init: reloading /etc/inittab xl info host : tst006.dumpdata.com release : 3.3.0-rc4 version : #1 SMP PREEMPT Mi686 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 2333 hw_caps : bfebfbff:20100800:00000000:00000940:0000e3fd:000000...
2002 Oct 18
4
code to turn T into TRUE
Does anyone have code that will methodically process R sourcecode, turning T's into TRUE and F's into FALSE? I got bored doing this by hand, after the first 30-odd functions-- there are hundreds left to do. I don't want to simply deparse everything, because that would destroy my beautiful formatting. The reason it's not trivial, is that comment lines, quotes, and split lines need
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone, When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE to y then I cannot boot Xen; there is a crash. If I turn CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has booted, xenpm works and gives some sane output, see below. I have tested this with kernels 3.2 to 3.4.6. Is it impossible to use INTEL_IDLE with Xen? If this is a known issue then maybe
2012 Jul 22
20
Kernel crash with acpi_processor, cpu_idle and intel_idle =y
Hi everyone, When I set CONFIG_ACPI_PROCESSOR, CONFIG_CPU_IDLE and CONFIG_INTEL_IDLE to y then I cannot boot Xen; there is a crash. If I turn CONFIG_INTEL_IDLE off then the boot goes well and, after dom0 has booted, xenpm works and gives some sane output, see below. I have tested this with kernels 3.2 to 3.4.6. Is it impossible to use INTEL_IDLE with Xen? If this is a known issue then maybe
2013 Jun 19
4
e008:[<ffff82c480122353>] check_lock+0x1b/0x45 [konrad.wilk@oracle.com: FAILURE 3.10.0-rc6upstream-00061-g752bf7d(x86_64) 3.10.0-rc6upstream-00061-g752bf7d(i386): 2013-06-19 (tst007)]
...__ ___ \ // _ \ ''_ \ | || |_ | || ''_ \ __| ''_ \| ''__/ _ \ / \ __/ | | | |__ _|| || (_) |__| |_) | | | __/ /_/\_\___|_| |_| |_|(_)_(_)___/ | .__/|_| \___| |_| (XEN) Xen version 4.1.6-pre (konrad@dumpdata.com) (gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC) ) Tue Jun 18 18:09:23 EDT 2013 (XEN) Latest ChangeSet: Mon Jun 17 11:12:41 2013 +0200 23554:2da9f4421c9a (XEN) Bootloader: unknown (XEN) Command line: com1=115200,8n1 console=com1,vga guest_loglvl=all tmem tmem_compress tmem_dedup dom0_mem=99...