Re: [R] setwd() permenent

2004-03-21 Thread Prof Brian Ripley
Since you are using ESS, you need to start R in the working directory you want. Since you are using Windows, please do read the rw-FAQ which covers this for the normal usage calls and asks you to send ESS questions to ess-help. On Sat, 20 Mar 2004, Fred J. wrote: when I close and reopen R it

Re: [R] Conflicting headers (was R_qsort_int_I() error)

2004-03-21 Thread Prof Brian Ripley
Do look at the code: Rmath.h contains #ifdef MATHLIB_STANDALONE typedef enum { FALSE = 0, TRUE } Rboolean; #else # include R_ext/Boolean.h /* for API back-compatibility -- DEPRECATED since R 1.2 -- */ #define LTRUE TRUE #define LFALSE FALSE #endif Is this code to be linked into R? If so you

[R] Solutions to Exercises - Data Analysis Graphics Using R

2004-03-21 Thread John Maindonald
This message is aimed at anyone who may be using exercises from my book with John Braun for teaching purposes. I am using this channel of communication in the absence of any other obvious effective channel. I ask the forbearance of list members. Our intention is to post solutions to selected

Re: [R] writing text on graphics' window

2004-03-21 Thread Duncan Murdoch
On Sun, 21 Mar 2004 11:07:01 +, you wrote: Hi, Does anyone know of a method for writing text to the graphics window, where there is *no* plot? Basically, I have developed a 'significance test' and I would like the output on the graphics window to say something about the input parameters

Re: [R] learning to debug

2004-03-21 Thread Duncan Murdoch
On Sun, 21 Mar 2004 06:09:47 -0800 (PST), you wrote: Hello I am trying to follow the instruction in README.debug on how to debug a code I wrote, so since it only shows the steps on how to debug a built in function and not a code in an *.R file, so ok, let me do this and maybe later I can find out

[R] Multilevel analysis with package lme

2004-03-21 Thread Felix Eschenburg
Dear list, i am a student of psychology and have to do a multilevelanalysis on some data. About that i have one general and one specific question. This is what i have copied from the help-file on lme: data(bdf) fm - lme(langPOST ~ IQ.ver.cen + avg.IQ.ver.cen, data = bdf,

Re: [R] Multilevel analysis with package lme

2004-03-21 Thread Douglas Bates
[EMAIL PROTECTED] (Felix Eschenburg) writes: Dear list, i am a student of psychology and have to do a multilevelanalysis on some data. About that i have one general and one specific question. This is what i have copied from the help-file on lme: data(bdf) fm - lme(langPOST ~

RE: [R] timing a function

2004-03-21 Thread Gabor Grothendieck
In rereading my post I noticed one point that may not be clear. When referring to using a fresh R session, that is not an alternative to gc(), its another thing that can be done in addition. One should still use gc(). In fact, the garbage collector may be called several times even during the

Re: [R] Multilevel analysis with package lme

2004-03-21 Thread Felix Eschenburg
First of all a big thanks for the fast answer. Using Package: nlme Version: 3.1-48 Date: 2004/01/14 Priority: recommended Title: Linear and nonlinear mixed effects models Author: Jose Pinheiro [EMAIL PROTECTED], Douglas Bates [EMAIL PROTECTED], Saikat DebRoy [EMAIL

[R] Trellis plot in multiple display with grid

2004-03-21 Thread Marco Chiarandini
Dear all, I would like to plot a multipanel display. Each plot should have the curve over time of the solution produced by 10 different algorithms (groups of data). I handle this with: xyplot(quality~time | inst, data=profiles, groups=alg, panel=panel.superpose, type=c(s),

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Deepayan Sarkar
On Sunday 21 March 2004 12:08, Marco Chiarandini wrote: Dear all, I would like to plot a multipanel display. Each plot should have the curve over time of the solution produced by 10 different algorithms (groups of data). I handle this with: xyplot(quality~time | inst, data=profiles,

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Marco Chiarandini
Thank you a lot! It works exactly as I desired. I dare to ask you another detail about Trellis multiple display plots. I would like to plot vertical lines in correspondence of the confidence intervals with the function below in order to make easier the visual comparison. Is this possible? I

[R] formated output

2004-03-21 Thread javier garcia - CEBAS
Hi all; I need to create ASCII files as output from R and I'm using sink(), cat(), and paste() for this. My problem is that the ASCII files hace several columns, and I would like to know if intermediate columns (the second one for example) could be alineated to the right. My values are integer

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Deepayan Sarkar
On Sunday 21 March 2004 13:23, Marco Chiarandini wrote: Thank you a lot! It works exactly as I desired. I dare to ask you another detail about Trellis multiple display plots. I would like to plot vertical lines in correspondence of the confidence intervals with the function below in order to

Re: [R] writing text on graphics' window

2004-03-21 Thread Ray Brownrigg
From: Duncan Murdoch [EMAIL PROTECTED] Date: Sun, 21 Mar 2004 06:58:03 -0500 On Sun, 21 Mar 2004 11:07:01 +, you [EMAIL PROTECTED] wrote: Does anyone know of a method for writing text to the graphics window, where there is *no* plot? Basically, I have developed a 'significance

Re: [R] formated output

2004-03-21 Thread Duncan Murdoch
On Sun, 21 Mar 2004 21:47:33 +0100, you wrote: Hi all; I need to create ASCII files as output from R and I'm using sink(), cat(), and paste() for this. My problem is that the ASCII files hace several columns, and I would like to know if intermediate columns (the second one for example) could be

Re: [R] Trellis plot in multiple display with grid

2004-03-21 Thread Marco Chiarandini
This is from Hmisc, right ? I'm not too familiar with it. But I don't see the link with the previous example. What exactly is wrong with this ? Do you want to use a 'groups' argument ? Yes, it is from Hmisc but it requires Lattice and it works with Trellis. I would like that in each of the

RE: [R] formated output

2004-03-21 Thread Carlos Ortega
Javier, You can do that with write.table. Regards, Carlos. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de javier garcia - CEBAS Enviado el: domingo, 21 de marzo de 2004 21:48 Para: [EMAIL PROTECTED] Asunto: [R] formated output Hi all; I need to

Re: [R] where is OOP?

2004-03-21 Thread Susumu Tanimura
Hi, This is self-response. I found OOP on http://www.omegahat.org/OOP/. However, further error was given. $ sudo R INSTALL OOP_0.4-2_R.tar.gz * Installing *source* package 'OOP' ... ** libs gcc -I/usr/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp -fPIC -O2 -m486

Re: [R] Operating on windows of data

2004-03-21 Thread Ajay Shah
I have a data set that is comprised of, for simplicity, a vector of numbers that I want to march across+in overlapping windows of say 10 values each, computing a couple of values for each window. Is there +a vectorized way to do this, or do I truly need to resort to looping--I think so? Any

[R] regex in R

2004-03-21 Thread Fred J.
Hello I could use some help here with trying to use perl stype regex to extract the first group of letters before a ( . ) so if I have a sting AACEE.adiid and wanting AACEE i - AACEE.adiid grep(.+\..?+,i,perl=T) I must be doing somthing wrong but don't know what it is? thanks

Re: [R] Operating on windows of data

2004-03-21 Thread Gabor Grothendieck
You can retain the trick of using subset and still get rid of the loop in: http://www.mayin.org/ajayshah/KB/R/EXAMPLES/rollingreg.R by using sapply like this (untested): dat - sapply( seq(T-width), function(i) { model - lm(dlinrchf ~ dlusdchf + dljpychf + dldemchf, A,

RE: [R] regex in R

2004-03-21 Thread Gabor Grothendieck
Here are two ways: sub( [.].*, ,i ) unlist( strsplit( i, split=[.] ) )[1] --- Date: Sun, 21 Mar 2004 22:27:42 -0800 (PST) From: Fred J. [EMAIL PROTECTED] To: r help [EMAIL PROTECTED] Subject: [R] regex in R Hello I could use some help here with trying to use perl stype regex to

Re: [R] regex in R

2004-03-21 Thread Prof Brian Ripley
On Sun, 21 Mar 2004, Fred J. wrote: I could use some help here with trying to use perl stype regex to extract the first group of letters before a ( . ) so if I have a sting AACEE.adiid and wanting AACEE i - AACEE.adiid grep(.+\..?+,i,perl=T) I must be doing somthing wrong but don't know

[R] integration in symbols

2004-03-21 Thread Erin Hodgess
Dear R People: Are there any functions for integration in R, please? Not integrateThat return a numeric value. I mean symbolic integration...the moral equivalent of D and deriv, please. Thanks in advance! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical

RE: [R] integration in symbols

2004-03-21 Thread Gabor Grothendieck
The free yacas symbolic math package can output in C form and that is often the same as R. For example, C:\usr\yacasyacas [... deleted startup message ...] In ToFile(out) WriteString(CForm(Integrate(x)1/x)); True; Out True; In quit Quitting... C:\usr\yacastype out log(x) C:\usr\yacas ... in