Displaying 20 results from an estimated 20000 matches similar to: "R can't source() long lines (PR#10383)"
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
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
1999 Mar 31
2
"dump" Splus -> R
Hi All,
I just used "dump" on Splus to transfer a pile of survival objects from
Splus 3.4 on Solaris 7 to R 0.63.3 on Intel.
The only trick is that survival objects contain an element holding the
original call that generated the object. When Splus writes these out, it
doesn't mark them in any way, so when R tries to read them in, it ends up
trying to reevaluate the call. Not
1999 Mar 31
2
"dump" Splus -> R
Hi All,
I just used "dump" on Splus to transfer a pile of survival objects from
Splus 3.4 on Solaris 7 to R 0.63.3 on Intel.
The only trick is that survival objects contain an element holding the
original call that generated the object. When Splus writes these out, it
doesn't mark them in any way, so when R tries to read them in, it ends up
trying to reevaluate the call. Not
2011 Aug 01
4
Use dump or write? or what?
Greetings all,
I am calculating two t-test values for each of many files then save it
to file calculate another set and append, repeat.
But I can't figure out how to write it to file and then append
subsequent 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,
2007 May 28
1
where did the factor name go
> tmp <- data.frame(y=rnorm(12), a=factor(rep(letters[1:4],3)))
> tmp
y a
1 -0.60866099 a
2 0.55500538 b
3 0.12231693 c
4 -0.24613790 d
5 -0.09253593 a
6 -1.54652581 b
7 0.17204210 c
8 -1.22778942 d
9 1.22151194 a
10 -0.43982577 b
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
2002 Feb 20
1
plot.hclust: strange behaviour with "manufactured" hclust object
I've been trying to get plot.hclust to work with a hclust object I
created and have not had much success. It seems that there is some
"hidden" characteristic of a hclust object that I can't see. This is
most easily seen in the following example, where plot.hclust works on
one object, but when this object is "dumped" and then re-read,
plot.hclust no longer works. Is
2007 Oct 10
1
File-Choose directory-Choose a folder (PR#9959)
Full_Name: Roberto Passera
Version: 2.6.0 and 2.6.0 patched
OS: Windows Vista Premium
Submission from: (NULL) (151.48.70.219)
Using R 2.6.0 and 2.6.0 patched Italian version on Windows Vista systems, when
selecting File-Choose directory, the sub-command Choose a folder doesn't go,
being stopped to Desktop option.
2009 Dec 13
3
lines don't wrap. must scroll horizontally to see/edit a long line in R GUI
I'm facing this problem on R GUI version 2.10.0 on Windows Vista. I have not
changed Windows settings or R GUI settings much except to change from MDI to
SDI.
Someone else reported this problem a few months ago:
https://stat.ethz.ch/pipermail/r-help/2009-April/195714.html
but it wasn't followed up.
I'd change the settings on Preferences, but there's no help explaining the
2001 Jun 29
1
KS test in R.1.3.0 has incorrect p-values. (PR#1004)
Based on a report to the Windows maintainers from Richard Rowe
<Richard.Rowe@jcu.edu.au>:
NEWS for 1.3.0 says
o Exact p-values are available for the two-sided two-sample
Kolmogorov-Smirnov test.
I think the (new) p-values are computed but are backwards:
> set.seed(123)
> x <- rnorm(50)
> y <- runif(50)
> ks.test(x,y, exact=T)$p
[1] 1
> 1 - ks.test(x,y,
2009 Sep 15
2
S3 objects in S4 slots
Hello,
I am the maintainer of the stringkernels package and have come across
a problem with using S3 objects in my S4 classes.
Specifically, I have an S4 class with a slot that takes a text corpus
as a list of character vectors. tm (version 0.5) saves corpora as
lists with a class attribute of c("VCorpus", "Corpus", "list"). I
don't actually need the
1999 Apr 22
0
mvfft
This message is in MIME format
--_=XFMail.1.3.p0.Linux:990422185944:4782=_
Content-Type: text/plain; charset=us-ascii
R-0.64.0 on RedHat Linux 5.1
Some problems with multivariate fast fourier transform. I
have attached the dump of a 30 x 3 matrix that seems to
reliably reproduce these problems
1) mvfft doesn't like vectors. It complains about not having
enough memory:
R>
2002 Aug 14
0
source() crashes on long lines (PR#1900)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
------=_NextPart_000_0006_01C2432C.7ACD6BA0
Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1
Content-Transfer-Encoding: 8BIT
Content-ID: <Pine.GSO.4.44.0208140920312.15226@auk.stats>
2007 Sep 19
3
delayedAssign
The last two lines of example(delayedAssign) give this:
> e <- (function(x, y = 1, z) environment())(1+2, "y", {cat(" HO! "); pi+2})
> (le <- as.list(e)) # evaluates the promises
$x
<promise: 0x032b31f8>
$y
<promise: 0x032b3230>
$z
<promise: 0x032b3268>
which contrary to the comment appears unevaluated. Is the comment
wrong or is it supposed to
1999 Apr 22
1
mvfft (PR#176)
This message is in MIME format
--_=XFMail.1.3.p0.Linux:990422185944:4782=_
Content-Type: text/plain; charset=us-ascii
R-0.64.0 on RedHat Linux 5.1
Some problems with multivariate fast fourier transform. I
have attached the dump of a 30 x 3 matrix that seems to
reliably reproduce these problems
1) mvfft doesn't like vectors. It complains about not having
enough memory:
R>
2008 May 07
3
Version 2.7 for Windows (PR#11399)
Full_Name: Charles Man
Version: 2.7
OS: XP and Vista
Submission from: (NULL) (219.79.247.35)
After installing the latest 2.7 on both Win XP SP2 and Win Vista Business SP1,
the program cannot load. An error message shows: "Fatal Error: Unable to Restore
a Saved File". I have to fall back to version 2.6
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.com
> Cc: r-help at stat.math.ethz.ch
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