RE: [R] Problems with Rcmd check on Win 2000 & rw1062

2003-02-11 Thread Marc Schwartz
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of >[EMAIL PROTECTED] >Sent: Tuesday, February 11, 2003 7:56 PM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: Re: [R] Problems with Rcmd check on Win 2000 & rw1062 > > >I do not

Re: [R] Problems with Rcmd check on Win 2000 & rw1062

2003-02-11 Thread Setzer . Woodrow
I do not understand why, but changing the definition of TMPDIR to C:/tmp solved the problem. R. Woodrow Setzer, Jr.Phone: (919) 541-0128 Experimental Toxicology Division Fax: (919) 541-4284 Pharmacokinetics Branch NHEERL B143-05; US EPA; RTP, NC 27711 Woo

Re: [R] Na/NaN error in subsampling script

2003-02-11 Thread Sundar Dorai-Raj
Nick Bond wrote: > R-help readers, > > I'm having a problem with an R script (see below), which regularly generates the error message, > > Error in start:(start + (sample.length - 1)) : > NA/NaN argument > > , for which I am unsure of the cause. > > In essence, the script (below) generat

RE: [R] configure can't get readline to work

2003-02-11 Thread Liaw, Andy
Thanks very much to Prof. Dalgaard. The problem was missing ncurses and ncurses-devel. After installing those, configure now finds readline properly. Cheers, Andy > -Original Message- > From: Peter Dalgaard BSA [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 5:44 PM > To:

[R] Na/NaN error in subsampling script

2003-02-11 Thread Nick Bond
R-help readers, I'm having a problem with an R script (see below), which regularly generates the error message, Error in start:(start + (sample.length - 1)) : NA/NaN argument , for which I am unsure of the cause. In essence, the script (below) generates the start and end points for ra

[R] rpart v. lda classification.

2003-02-11 Thread Rolf Turner
I've been groping my way through a classification/discrimination problem, from a consulting client. There are 26 observations, with 4 possible categories and 24 (!!!) potential predictor variables. I tried using lda() on the first 7 predictor variables and got 24 of the 26 observations correctly

Re: [R] How "else" works

2003-02-11 Thread Deepayan Sarkar
On Tuesday 11 February 2003 04:40 pm, [EMAIL PROTECTED] wrote: > I have what is likely to be a simple question about the else keyword. > > The usage in the help pages is as follows: > > if(cond) cons.expr else alt.expr > > I would expect to be able to use it in the following way as well: >

Re: [R] How "else" works

2003-02-11 Thread Peter Dalgaard BSA
[EMAIL PROTECTED] writes: > if(cond){ > cons.expr > } > else alt.expr > > This results a syntax error. > > Am I doing something wrong, or doesn't R support the spanning of the > combination of if and else statements over several lines? The rule is that in it read

Re: [R] How "else" works

2003-02-11 Thread John Fox
Dear Brian, At 02:40 PM 2/11/2003 -0800, [EMAIL PROTECTED] wrote: I have what is likely to be a simple question about the else keyword. The usage in the help pages is as follows: if(cond) cons.expr else alt.expr I would expect to be able to use it in the following way as well:

Re: [R] How "else" works

2003-02-11 Thread Sundar Dorai-Raj
[EMAIL PROTECTED] wrote: I have what is likely to be a simple question about the else keyword. The usage in the help pages is as follows: if(cond) cons.expr else alt.expr I would expect to be able to use it in the following way as well: if(cond){ cons.expr } else alt.expr This resul

Re: [R] postgres

2003-02-11 Thread Joshua Gramlich
Right, but you see, I'm not trying to make a connection in R yet, I'm trying to get the right tools installed. I have found zero coherent documentation for any of this stuff. Yes, there's the import/export guide, and that's helpful and all but it doesn't tell me what I need to do with these files

Re: [R] configure can't get readline to work

2003-02-11 Thread Peter Dalgaard BSA
"Liaw, Andy" <[EMAIL PROTECTED]> writes: > Dear R-help, > > I'm running into some strange problem compiling R 1.6.2 on Mandrake Linux > 9.0. When I do > > ./configure --enable-R-shlib > > I get the following in config.log: > === > configure:11366: checking for rl_cal

[R] How "else" works

2003-02-11 Thread Brian . J . GREGOR
I have what is likely to be a simple question about the else keyword. The usage in the help pages is as follows: if(cond) cons.expr else alt.expr I would expect to be able to use it in the following way as well: if(cond){ cons.expr } else alt.ex

Re: [R] postgres

2003-02-11 Thread Jason W. Martinez
Josh, It sounds like part of your problem is that you're not reading all of the documentation. The first step is to _understand_ what an ODBC Manager is AND what it is supposed to be doing. You have to configure your manager (among other things) before you can even begin to make a connection f

Re: [R] postgres

2003-02-11 Thread Joshua Gramlich
I'm actually looking at that exact page in the import/export manual right now. I'm trying to install RODBC via CRAN, but I get this: blahblahblah... checking for library containing SQLTables... no configure: error: "no ODBC driver manager found" ERROR: configuration failed for package 'RODBC'

Re: [R] postgres

2003-02-11 Thread Dirk Eddelbuettel
> Is anyone using R with postgres? I'd like to do so, but cannot seem to > find any reasonable explanation of how to do so. Lots of us do. There is a confusingly wide selection of connection mechanisms available, I mostly stick with RODBC as I can then use the same code snippets under Windoze a

[R] configure can't get readline to work

2003-02-11 Thread Liaw, Andy
Dear R-help, I'm running into some strange problem compiling R 1.6.2 on Mandrake Linux 9.0. When I do ./configure --enable-R-shlib I get the following in config.log: === configure:11366: checking for rl_callback_read_char in -lreadline configure:11397: gcc -o conftest

Re: [R] postgres

2003-02-11 Thread Andrew Perrin
Yes, I do. Here's a code snippet that worked for me: library(RPgSQL) db.connect(dbname='fgdata') fgdata.df<-db.read.table('mlm_data') This assumes you have the RPgSQL library installed, and that you have postgres running on the local machine. There's more documentation in the RPgSQL package. B

Re: [R] postgres

2003-02-11 Thread John Fox
Dear David and Joshua, One can also access PostgreSQL via the RODBC package. There's more information in section 4 of the R Data Import/Export manual, which is part of the R distribution and is also available on CRAN. John At 04:08 PM 2/11/2003 -0500, David Forrest wrote: On 11 Feb 2003, Joshu

Re: [R] Memory allocation, IBM-AIX and R-1.6.2 - addendum

2003-02-11 Thread Luke Tierney
On 10 Feb 2003, Peter Dalgaard BSA wrote: > Laurent Gautier <[EMAIL PROTECTED]> writes: > > > ...sorry for the spam, but answers I get to my previous > > question suggest that I should specify that the > > machine has a *lot* of memory and should be able > > to the instanciation... > > > > Anybo

Re: [R] postgres

2003-02-11 Thread David Forrest
On 11 Feb 2003, Joshua Gramlich wrote: > Is anyone using R with postgres? I'd like to do so, but cannot seem to > find any reasonable explanation of how to do so. > > > Joshua Gramlich > Chicago, IL library(RPgSQL) # It isn't in an obvious place: # http://lib.stat.cmu.edu/R/CRA

[R] postgres

2003-02-11 Thread Joshua Gramlich
Is anyone using R with postgres? I'd like to do so, but cannot seem to find any reasonable explanation of how to do so. Joshua Gramlich Chicago, IL __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Asssistance

2003-02-11 Thread VAN MANFRED
Attn Sir, My name is Addy Van Manfred, i am a Dutch white farm settler in Zimbabwe, i came to Zimbabwe as a teenager when my uncle worked as a clerk in the the Pre-Colonial Government of Zimbabwe. The History of Zimbabwe is traced back to the time of Pioneer column in the late 180

Re: [R] Problems with Rcmd check on Win 2000 & rw1062

2003-02-11 Thread Setzer . Woodrow
TMPDIR seems to be OK: > echo %TMPDIR% C:/DOCUME~1/R5018~1.WOO/LOCALS~1/Temp > I'll poke around in the Perl code to see what I can find. R. Woodrow Setzer, Jr.Phone: (919) 541-0128 Experimental Toxicology Division Fax: (919) 541-4284 Pharmacokinetics Branch

Re: [R] Problems with Rcmd check on Win 2000 & rw1062

2003-02-11 Thread ripley
Rcmd check uses TMPDIR, so what exactly do you have that set to? It does look to me as if you do not have it set correctly, but you can debug the Perl to find out what it is doing. It certainly works for me iff TMPDIR is set correctly. On Tue, 11 Feb 2003 [EMAIL PROTECTED] wrote: > When I run R

[R] Problems with Rcmd check on Win 2000 & rw1062

2003-02-11 Thread Setzer . Woodrow
When I run Rcmd check on a package on my Windows 2000 machine, I get a series of error messages like the following: * checking generic/method consistency ...c:\DOCUME~1\R5018~1.WOO\LOCALS~1\Temp/R utils138414013: cannot open c:DOCUME~1R5018~1.WOOLOCALS~1Temp/Rin138408157: no s uch file It looks a

[R] Dynamic Linear Models for Times Series - Implemented?

2003-02-11 Thread Gavin Simpson
Hi, I was wondering whether a package that can perform dynamic linear models on times series data was available for R? Many Thanks, Gavin Simpson %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fell

RE: [R] Periods instead of spaces in dataframe names?

2003-02-11 Thread Tom Arnold
Thanks to John, Sundar, and Peter Dalgaard for their quick and helpful (and correct!) answers to my questions. By explaining the check.names argument and the need to escape the "." to be "\\." in gsub(), I now have several ways to solve the problem. I also found the "strwrap" function, so now I c

Re: [R] Covariance matrix for GMM

2003-02-11 Thread Peter Dalgaard BSA
"Feng Zhang" <[EMAIL PROTECTED]> writes: > There is no way to answer this question? > > even for writing the sample covariance matrix > formulation for the data set [X, Y] where > X(n observations) and Y (m observations) are from > the class 1 and class 2 which both are > multidimensional normal

Re: [R] Periods instead of spaces in dataframe names?

2003-02-11 Thread John Fox
Dear Tom, When you read the data into a data frame via read.csv, the character strings in the first row of the data file, which you've indicated is to be interpreted as a header, are used for column names; in the process, blanks are converted to periods, since nonstandard names including blanks

Re: [R] Covariance matrix for GMM

2003-02-11 Thread Ben Bolker
I think the problem (for me at least) is that you haven't stated the problem quite clearly enough. I may (quite probably) be missing something; the means clearly combine additively (mean=a1*u1+a2*u2), I think the covariances combine additively as well. In addition, you may not be getting mu

Re: [R] Periods instead of spaces in dataframe names?

2003-02-11 Thread Sundar Dorai-Raj
Tom, Tom Arnold wrote: Basic question: when I use names() to extract the name of a dataframe element, why does it have "." instead of " " between words? Context: I'm importing a CSV file of survey results for analysis. I read them like this: df <- read.csv("surveydata.csv",nrows=40,header=TRUE,

Re: [R] Covariance matrix for GMM

2003-02-11 Thread Feng Zhang
There is no way to answer this question? even for writing the sample covariance matrix formulation for the data set [X, Y] where X(n observations) and Y (m observations) are from the class 1 and class 2 which both are multidimensional normal distribution? - Original Message - From: "Feng

[R] Periods instead of spaces in dataframe names?

2003-02-11 Thread Tom Arnold
Basic question: when I use names() to extract the name of a dataframe element, why does it have "." instead of " " between words? Context: I'm importing a CSV file of survey results for analysis. I read them like this: df <- read.csv("surveydata.csv",nrows=40,header=TRUE, na.string

Re: [R] problems with ess and xemacs on win32

2003-02-11 Thread Sundar Dorai-Raj
Serge, Serge Boiko wrote: Hi there; I have the following problem --- Xemacs cannot correctly parse a path to file when I load it. I have the following error, reported by Xemacs: from ess-parse-errors: Error in file(file, "r") : cannot open file `u:US-mortalityjuttalexible.r While the correct

Re: [R] problems with ess and xemacs on win32

2003-02-11 Thread Mathieu Ros
> "SB" == Serge Boiko <[EMAIL PROTECTED]> disait: SB> Hi there; I have the following problem --- Xemacs cannot SB> correctly parse a path to file when I load it. SB> I have the following error, reported by Xemacs: SB> from ess-parse-errors: Error in file(file, "r") : cannot o

[R] problems with ess and xemacs on win32

2003-02-11 Thread Serge Boiko
Hi there; I have the following problem --- Xemacs cannot correctly parse a path to file when I load it. I have the following error, reported by Xemacs: from ess-parse-errors: Error in file(file, "r") : cannot open file `u:US-mortalityjuttalexible.r While the correct file path should be: u:\US-

RE: [R] Tcl/Tk support is not available on this system.

2003-02-11 Thread Marc Schwartz
>-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Peter Dalgaard BSA >Sent: Tuesday, February 11, 2003 9:03 AM >To: Forbeck, Doug (NIH/NCI) >Cc: [EMAIL PROTECTED] >Subject: Re: [R] Tcl/Tk support is not available on this system. > > >"Forbeck, Doug (NIH/

Re: [R] Tcl/Tk support is not available on this system.

2003-02-11 Thread John Zhang
You probably do not have the tcl/tk libraries on which R tcltk package relies. tcl/tk can be downloaded from the web. >From: "Forbeck, Doug (NIH/NCI)" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >MIME-Version: 1.0 >X-Virus-Scanned: by amavisd-milter (http://amavis.org/) >X-

Re: [R] Tcl/Tk support is not available on this system.

2003-02-11 Thread Peter Dalgaard BSA
"Forbeck, Doug (NIH/NCI)" <[EMAIL PROTECTED]> writes: > I am trying to get R to run on a Red Hat 8 system, I am running R version > 1.6.2 with Tcl/Tk version 8.3.5 installed. When I try to test R from the > data_sets directory I get the error message; > Error in firstlib(which.lib.loc, package) :

Re: [R] is.null() and lm obj

2003-02-11 Thread ripley
On Tue, 11 Feb 2003 [EMAIL PROTECTED] wrote: > Partial matching! > > obj$x matches obj$xlevels. You need to use obj[["x"]] to be sure to > get exactly that component. Apparently you need obj[[match("x", names(obj), 0)]] in current R. -- Brian D. Ripley, [EMAIL PROTECTED] Prof

Re: [R] is.null() and lm obj

2003-02-11 Thread ripley
Partial matching! obj$x matches obj$xlevels. You need to use obj[["x"]] to be sure to get exactly that component. Why didn't you try > names(obj) [1] "coefficients" "residuals" "effects" "rank" [5] "fitted.values" "assign""qr""df.residual" [9] "xleve

[R] Tcl/Tk support is not available on this system.

2003-02-11 Thread Forbeck, Doug (NIH/NCI)
I am trying to get R to run on a Red Hat 8 system, I am running R version 1.6.2 with Tcl/Tk version 8.3.5 installed. When I try to test R from the data_sets directory I get the error message; Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error i

[R] rpart- error rate for survival regression?

2003-02-11 Thread Hyung Kim
Hello I am using rpart with survival data. When I 'printcp' I get the results below. Can someone please explain two things for me in lay man's terms. 1) What exactly is the complexity parameter? 2) How do I calculate the absolute cross validated error rate when the root node error in my exampl

Re: [R] RPgSQL W2K

2003-02-11 Thread John Fox
Dear Christian, At 08:41 AM 2/11/2003 +0100, Christian Schulz wrote: i found tis message in the archive and have got the same problems ? John, perhaps you have found now a way install RPgSQL for windows2000, or anybody other ? many thanks for advance christian [SNIP] I wonder whether anyon

[R] is.null() and lm obj

2003-02-11 Thread vito muggeo
Dear all, I found the following strange behavior of is.null() in the x component of a lm object. *However note that I'm running R-1.5.1, so probably the error (if someone) has been fixed in the the versions 1.6.x. If it is so, please apologizes for this my e-mail x<-1:10 y<-rnorm(10) obj<-lm(y~x)

Re: [R] multilm for simseg/acm

2003-02-11 Thread Christian Schulz
thanks, with recommendation from Prof. Ripley the installation works :-) P.S. ...and it seems that some further modifications necessary to run "sfb_2.0-3.tar.gz" on windows ,like recoding RPgSQL -> RODBC . christian - Original Message - From: "Torsten Hothorn" <[EMAIL PROTECTED]> To:

Re: [R] multilm for simseg/acm

2003-02-11 Thread Torsten Hothorn
> hi, > for working with the simseg/acm approach i need multilm and it seems > that the last version is 0.1-4.tar ? hm. once upon a time this package was part of the CRAN devel section but was removed more than a year ago, if I recall it correctly, since multivariate analysis of variance models

Re: [R] geoR question from new R user

2003-02-11 Thread Sharon Lambert
THANKS! This was exactly the problem. Sharon - Original Message - From: Roger Peng <[EMAIL PROTECTED]> Date: Monday, February 10, 2003 8:31 pm Subject: Re: [R] geoR question from new R user > Is `D' the original matrix or a `geodata' object? You need to > assign the > output of `as.geo