I am constantly running into the problem where I get
error messages like cannot do complex assignments in
base namespace.
It might have something to do with the fact that R has
not started up completely, since I am trying to run
some R script using Rterm Rscript.R.
When I perform the same
Could you
1) Try with --vanilla.
2) Show us a small example.
In general user code should not be assigning in base (are you
using - by any chance?), but there is no difference when redirecting
input in Rterm as to where code is run. (Your command-line flags may
well affect it, though.)
On Sat,
Can you provide a toy example including a data.frame statement
with one or more of the primary variants you have tried with the error
message(s) or other problems you encountered? You are more likely to
get a useful response if an interested reader can copy a few lines from
your email
Thanks for the fast reply.
When I use --vanilla for Rterm.exe (Using windows
here) I do not get the problem anymore, so that solved
half my problems. Thanks (I had used --slave --no-save
--no-restore)
But I seem to have the problem of getting the error
message cannot do complex assignments in
Thon de Boer wrote:
Thanks for the fast reply.
When I use --vanilla for Rterm.exe (Using windows
here) I do not get the problem anymore, so that solved
half my problems. Thanks (I had used --slave --no-save
--no-restore)
But I seem to have the problem of getting the error
message
On Sun, 21 Dec 2003, Uwe Ligges wrote:
And that's the point! Don't use Rprofile to execute scripts, because
everything assigned in there will be loaded into base on startup. (See
?Startup)
For running scripts I'd recommend to use Rcmd BATCH (you will need Perl,
though), but it's also
I agree it may not be 100% clear but ?names does say
The default methods get and set the 'names' attribute
of a vector or list. and if you issue the command:
methods(names)
you find that the only non-default method is names.dist.
Date: Sun, 21 Dec 2003 17:54:25 + (GMT)
From: Damon
Dear L Z -
Before using contour() one needs to interpolate the z values
to all points in a rectangular grid. 2D interpolation is not
trivial. The package KernSmooth (case-sensitive) will do this
for a density estimate but not, apparently, when z values are
given. Perhaps packages splines or
Have you considered interp, as in the following example:
XY - expand.grid(x=1:11, y=1:11)
XY$z - XY$x+XY$y
contour(interp(XY$x, XY$y, XY$z))
hope this helps. spencer graves
Thomas W Blackwell wrote:
Dear L Z -
Before using contour() one needs to interpolate the z values
to all points in a
Good...It is getting clearer now and I indeed read
?Startup so that is why I knew i had to use local()
blocks (or use the .First function, but that does not
seem to work in Rterm) in the first place. The problem
there, is that any of the objects that are created in
the local block are afcourse no
Prof. Ripley: Thanks for the response.
My imperfect understanding is that contrasts are a special kind of linear
combination that can be done a priori.
Here's an example that is similar to what she wants to do:
## START EXAMPLE
# Toy data:
y1 - rnorm(15,0,2)
y2 - runif(15)
y3 - rnorm(15,2,1)
Yes, they were lattice and your suggestion did the trick. Many thanks!
-Original Message-
From: Jason Turner [mailto:[EMAIL PROTECTED]
Sent: Sun 12/21/2003 12:30 AM
To: Harold Doran
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Sweave/LaTeX
Gabor Grothendieck [EMAIL PROTECTED] writes:
For it to be well defined, there would need to be a names
method and a names- method for the factor class or else
the default methods would have to be able to handle factors.
Not only that but other methods for factors need to know about the
names
Based on Peter's response, I think I may have misinterpreted
Damon's query. The methods I displayed in my last post in
this thread were intended to make name a synonym for level. If
its desired that name act on factors in the same way that names
act on vectors and lists then the methods I
14 matches
Mail list logo