Re: [R] R and Data Storage

2005-10-01 Thread Tobias Verbeke
[EMAIL PROTECTED] wrote: Where I work a lot of people end up using Excel spreadsheets for storing data. This has limitations and maybe some less than obvious problems. I'd like to recommend a uniform way for storing and archiving data collected in the department. Most of the data could be stored

[R] Placing axes label strings closer to the graph?

2005-10-01 Thread Ajay Narottam Shah
Folks, I have placed an example of a self-contained R program later in this mail. It generates a file inflation.pdf. When I stare at the picture, I see the X label string and Y label string sitting lonely and far away from the axes. How can these distances be adjusted? I read ?par and didn't find

Re: [R] R-2.1.1 on AIX 5.*

2005-10-01 Thread Prof Brian Ripley
Note your first error message is connections.c, line 2580.18: 1506-052 (S) Duplicate case label for value 4. Labels must be unique. and the relevant line is #if SIZEOF_LONG == 8 case sizeof(long): so you have somehow got options to give you 4-byete longs although configure

Re: [R] update MASS

2005-10-01 Thread Prof Brian Ripley
On Sat, 1 Oct 2005, Ramón Casero Cañas wrote: I'd like to update MASS from version 7.2-11 to version 7-2.19. I am running R 2.0.1 on ubuntu, that installs MASS with the package r-cran-vr. First, MASS is part of VR, so it is VR you update. Second, please do *READ THE HELP PAGE*. The first

Re: [R] Placing axes label strings closer to the graph?

2005-10-01 Thread Prof Brian Ripley
Use mtext() to put labels in the margin line you want. title() writes xlab and ylab in line 3 AFAIR. So you could use something like par(mai=c(0.6,0.6,0.2,0.2)) plot(D$dates, D$inflation, type=l, lwd=2, col=cadetblue4, cex.axis=0.6) mtext(X label string, 1, line=2, cex = 0.6) mtext(Y

[R] Multiple expressions, when using substitute()

2005-10-01 Thread John Maindonald
expression() accepts multiple expressions as arguments, thus: plot(1:2, 1:2) legend(topleft, expression(y == a * x^b, where * paste(y==wood; , x==dbh))) Is there a way to do this when values are to be substituted for a and b? i.e., the first

[R] X-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Paul Roebuck
Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the correct par option to fix this... TIA grdev - function(...) { get(getOption(device))(...) } plotFixMe - function(spectrum,

Re: [R] update MASS

2005-10-01 Thread Kjetil Holuerson
Ramón Casero Cañas wrote: I'd like to update MASS from version 7.2-11 to version 7-2.19. I am running R 2.0.1 on ubuntu, that installs MASS with the package r-cran-vr. My installed version of MASS, 7-2.20, has version requirement R= 2.1.0, so you will need to update R first. Kjetil I have

Re: [R] R-2.1.1 on AIX 5.*

2005-10-01 Thread Ei-ji Nakama
Hi, my configure command line is : #./configure --prefix=$HOME/local/R-2.1.1 CC=xlc_r CXX=xlC_r F77=xlf_r --without-x --without-readline OBJECT_MODE=64 LDFLAGS=-brtl CFLAGS=-O ^^ It is 64bit at the time of configure. then i compiled the source :

Re: [R] R and Data Storage

2005-10-01 Thread Frank E Harrell Jr
[EMAIL PROTECTED] wrote: Where I work a lot of people end up using Excel spreadsheets for storing data. This has limitations and maybe some less than obvious problems. I'd like to recommend a uniform way for storing and archiving data collected in the department. Most of the data could be

Re: [R] update MASS

2005-10-01 Thread Ramón Casero Cañas
Prof Brian Ripley wrote: On Sat, 1 Oct 2005, Ramón Casero Cañas wrote: I'd like to update MASS from version 7.2-11 to version 7-2.19. I am running R 2.0.1 on ubuntu, that installs MASS with the package r-cran-vr. First, MASS is part of VR, so it is VR you update. Thanks Prof Ripley, and

Re: [R] Multiple expressions, when using substitute()

2005-10-01 Thread Marc Schwartz
On Sat, 2005-10-01 at 20:32 +1000, John Maindonald wrote: expression() accepts multiple expressions as arguments, thus: plot(1:2, 1:2) legend(topleft, expression(y == a * x^b, where * paste(y==wood; , x==dbh))) Is there a way to do

Re: [R] X-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Marc Schwartz
On Sat, 2005-10-01 at 06:07 -0500, Paul Roebuck wrote: Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the correct par option to fix this... TIA grdev - function(...) {

[R] questions about R

2005-10-01 Thread James Anderson
Hi, I am new to R. I have one question about outputing files in a loop; Suppose I have the following loop: for (i in 1:10) { temp = 100*2 matrix; } I want to output the value of temp into 10 files with each file containing the number of looping index (i.e, file1.csv, file2.csv, ...) without

Re: [R] List Email Statistic

2005-10-01 Thread Adaikalavan Ramasamy
This also depends on which field you are interested in, for example MEDSTATS (http://tinyurl.com/bwha8) ED-STATS (http://lists.psu.edu/archives/edstat-l.html) and a few more http://tinyurl.com/a8wo4 Regards, Adai On Fri, 2005-09-30 at 07:32 -0500, Marc Schwartz wrote: On Thu, 2005-09-29

Re: [R] questions about R

2005-10-01 Thread Marc Schwartz
On Sat, 2005-10-01 at 08:59 -0700, James Anderson wrote: Hi, I am new to R. I have one question about outputing files in a loop; Suppose I have the following loop: for (i in 1:10) { temp = 100*2 matrix; } I want to output the value of temp into 10 files with each file containing

Re: [R] List Email Statistic

2005-10-01 Thread Marc Schwartz
Indeed. I was not aware of the additional non-usenet statistics Google Groups. Some familiar names on the MEDSTATS list... :-) Thanks Adai. Marc On Sat, 2005-10-01 at 18:17 +0100, Adaikalavan Ramasamy wrote: This also depends on which field you are interested in, for example MEDSTATS

[R] help with loading National Comorbidity Survey

2005-10-01 Thread Jim Hurd
I downloaded data from http://www.hcp.med.harvard.edu/ncs/ Which provides data in DTA (STATA), XPT (SAS), and POR (SPSS) formats all of which I have tried to read with the foreign package but I am not able to load any of them. I have 2 gb of RAM, but R crashes when the memory gets

Re: [R] Regression slope confidence interval

2005-10-01 Thread Prof Brian Ripley
On Thu, 29 Sep 2005, Christian Hennig wrote: ?confint Thank you to all of you. As far as I see this is not mentioned on the lm help page (though I presumably don't have the recent version), which I would suggest... and I would suggest that you study a good book on the subject. (confint

Re: [R] ACCESS R and dates

2005-10-01 Thread Prof Brian Ripley
On Fri, 30 Sep 2005, sloan jones wrote: I have used the RODBC package to read in data I have stored in an Access file. When I am using data from files other than ACCESS I have no problem using the survival package to work with dates; however, with the ACCESS data the dates are reading-in

[R] dec2bin?

2005-10-01 Thread Haiyong Xu
Hello, I just want to ask if there is any function that can convert decimal number to binary vector. Thanks a lot. Haiyong __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Y-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Paul Roebuck
On Sat, 1 Oct 2005, Marc Schwartz wrote: On Sat, 2005-10-01 at 06:07 -0500, Paul Roebuck wrote: Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the correct par option to fix this... This

Re: [R] cox proportional-hazards regress for interval censor data

2005-10-01 Thread Göran Broström
On 9/29/05, Lixia ZHU [EMAIL PROTECTED] wrote: Hi. I used coxph(surv(start,end,event)~~event,data) to deal with interval censor data. Did it work;)? I guess the answer is No. First, 'surv' is not a recognized function (I know of). Second, the ~~ look weird. And, relating a survival object to an

Re: [R] dec2bin?

2005-10-01 Thread Prof Brian Ripley
On Sat, 1 Oct 2005, Haiyong Xu wrote: I just want to ask if there is any function that can convert decimal number to binary vector. What do you mean by a binary vector? Function intToBits might be what you are looking for, e.g. x - as.integer(1234) y - intToBits(x) options(width=50) y

Re: [R] Y-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Prof Brian Ripley
On Sat, 1 Oct 2005, Paul Roebuck wrote: On Sat, 1 Oct 2005, Marc Schwartz wrote: On Sat, 2005-10-01 at 06:07 -0500, Paul Roebuck wrote: Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't been able to set the

Re: [R] Y-Axis Label Overwritten By TickMark Values

2005-10-01 Thread Marc Schwartz
On Sat, 2005-10-01 at 16:00 -0500, Paul Roebuck wrote: On Sat, 1 Oct 2005, Marc Schwartz wrote: On Sat, 2005-10-01 at 06:07 -0500, Paul Roebuck wrote: Can someone tell me how to fix the left margin of plot region such that the tick values don't overwrite the x-axis label? I haven't

[R] How to load user defined functions written in another file

2005-10-01 Thread Saptarshi Guha
Hello, This is most probably basic, but i simply couldn't find the answer. I have written a function in a separate file multi.r, and would like to load this into the R-IDE so that I can use my function. How do i go about it? Thank you in advance. Saptarshi Saptarshi Guha|[EMAIL

Re: [R] How to load user defined functions written in another file

2005-10-01 Thread Saptarshi Guha
Hello, I'm sorry for the silly question. Just found out how. Use 'source'. Thanks for your time. Saptarshi On Oct 1, 2005, at 10:10 PM, Saptarshi Guha wrote: Hello, This is most probably basic, but i simply couldn't find the answer. I have written a function in a separate file