Re: [R] Comparing "transform" to "with"

2007-09-01 Thread Peter Dalgaard
Muenchen, Robert A (Bob) wrote: > Hi All, > > I've been successfully using the with function for analyses and the > transform function for multiple transformations. Then I thought, why not > use "with" for both? I ran into problems & couldn't figure them out from > help files or books. So I created

[R] Importing huge XML-Files

2007-09-01 Thread Alexander Heidrich
Dear all, for my diploma thesis I have to import huge XML-Files into R for statistical processing - huge means a size about 33 MB. I'm using the XML-Package version 1.9 As far as reading the complete file into R via xmlTreeParse doesn't work or is too slow, I'm trying to use xmlEventParse bu

Re: [R] Excel

2007-09-01 Thread Ted Harding
[Apologies if you sometime get this twice. The first mailing has not been delivered to the list after more than 10 hours] On 31-Aug-07 10:38:07, Jim Lemon wrote: > Rolf Turner wrote: >> On 31/08/2007, at 9:10 AM, Antony Unwin wrote: >> >> >>>Erich's more important point >>>is that you need to s

[R] Comparing "transform" to "with"

2007-09-01 Thread Muenchen, Robert A (Bob)
Hi All, I've been successfully using the with function for analyses and the transform function for multiple transformations. Then I thought, why not use "with" for both? I ran into problems & couldn't figure them out from help files or books. So I created a simplified version of what I'm doing: r

Re: [R] why doesn't as.character of this factor create a vector ofcharacters?

2007-09-01 Thread Michael Lachmann
This message didn't seem to have been somewhat forgotten. Here is a reply. When you constructed the data.frame, all strings were converted to factors. If you didn't want that, it would have been possible to specify it: df<-data.frame(a=a,b=b,c=c,stringsAsFactors=F) Then everything would work as

[R] ls.str

2007-09-01 Thread Cathy Vascus
I try to use ls.str to return a character object ("at") in an attached data frame, "folder", like so: ls.str(pos="folder", pattern="at", envir=as.environment("folder")) R accepts the command but returns nothing. Does this make sense to anyone? Actually, what I want is the position (row and colu

[R] genoud problem

2007-09-01 Thread Shubha Vishwanath Karanth
Hi R users, "genoud" function of "rgenoud" package will optimize my function. If opt = genoud(fn,2,max=TRUE,starting.value=c(1,10),) opt$value will give the optimized value of the function, "fn". My problem is from the same opt, can I get the value of the function at the initia

Re: [R] why doesn't as.character of this factor create a vector ofcharacters?

2007-09-01 Thread Michael Lachmann
This message didn't seem to have been somewhat forgotten. Here is a reply. When you constructed the data.frame, all strings were converted to factors. If you didn't want that, it would have been possible to specify it: df<-data.frame(a=a,b=b,c=c,stringsAsFactors=F) Then everything would work as

[R] non-linear fitting (nls) and confidence limits

2007-09-01 Thread Joerg van den Hoff
dear list members, I apologize in advance for posting a second time, but probably after one week chances are, the first try went down the sink.. my question concerns computation of confidence intervals in nonlinear fits with `nls' when weigthing the fit. the seemingly correct procedure does not w

Re: [R] Incomplete Gamma function

2007-09-01 Thread Ted Harding
On 31-Aug-07 13:06:42, Prof Brian Ripley wrote: > On Fri, 31 Aug 2007, Robin Hankin wrote: > >> Hi Kris >> lgamma() gives the log of the gamma function. > > Yes, but he used Igamma. According to ?pgamma, > > 'pgamma' is closely related to the incomplete gamma function. > As defined by Abram

[R] Visual details in integration of emacs, ess, Sweave (under aquamacs on OS X)

2007-09-01 Thread Ajay Shah
I am a very happy user of emacs, ess, Sweave. My complaint is about aquamacs (under OS X) and might not apply to other emacs variants. There is one piece of visual detail that I think is a problem. When the cursor moves from a line that's latex to a line that's R, ess automatically switches from a

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-09-01 Thread Peter Dalgaard
Andrew Yee wrote: > Thanks for the clarification. I should have recognized the difference > between "warning" and "error." > But if I may take this a step further, shouldn't it then be exact=TRUE > instead of exact=NULL? > Thanks, > Andrew > Nope. The two are equivalent for the Spearman test,

[R] Problem in downloading Yahoo Finance data from R

2007-09-01 Thread Shubha Vishwanath Karanth
Hi R users, I have a problem in downloading Yahoo Finance data from R. I have tried an example given in R, to download. The error is given below: >library(fCalendar) > yahooImport("s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000&z=IBM&x=.csv ", file = "D:\\ Downlaod",source = "http://ichart.yahoo

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-09-01 Thread Andrew Yee
Thanks for the clarification. I should have recognized the difference between "warning" and "error." But if I may take this a step further, shouldn't it then be exact=TRUE instead of exact=NULL? Thanks, Andrew On 8/31/07, Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > Andrew Yee wrote: > > Pardon

Re: [R] size limitations in R

2007-09-01 Thread Peter Dalgaard
Daniel Lakeland wrote: > On Fri, Aug 31, 2007 at 01:31:12PM +0100, Fabiano Vergari wrote: > > >> I am a SAS user currently evaluating R as a possible addition or >> even replacement for SAS. The difficulty I have come across straight >> away is R's apparent difficulty in handling relatively larg

Re: [R] plotting

2007-09-01 Thread Jim Lemon
yoo wrote: > Hi, let's say I have data > > x = c(1, 2, 10, 12) > y = c(100, -20, 50, 25) > > if I go plot(x, y), then the default x-axis range goes from 1 to 12. Is > there a way to change it so that the axis looks like: > > |-|-|-| > 1 2 10 12 > > T

Re: [R] Automatic anchors for text boxes

2007-09-01 Thread Jim Lemon
Yves Moisan wrote: > Hi All, > > I'm struggling to add text automatically to plots. I have a series of > scatterplots that I have stored in a script because the underlying data > changes often and the plots need to be regenerated. I use the scatterplot > function (defined in Rcmd, I believe). W

[R] iplots Java

2007-09-01 Thread Michael Kubovy
I run R 2.5.1 on a Mac, and use JGR as the front-end. When I performed an update.packages(), I believe it unpdated a component of JGR. I then quit and tried to relaunch JGR. It wouldn't launch. Instead it opened a panel that says: "Cannot find iplot Java classes. Please make sure that the l

Re: [R] memory.size help

2007-09-01 Thread Michael Dewey
At 13:27 31/08/2007, dxc13 wrote: >I keep getting the 'memory.size' error message when I run a program I have >been writing. It always it cannot allocate a vector of a certain size. I >believe the error comes in the code fragement below where I have multiple >arrays that could be taking up space

Re: [R] by group problem

2007-09-01 Thread Erich Neuwirth
Perhaps you want this? data <- NULL data$state <- c(rep("Illinois", 10), rep("Wisconsin", 10)) data$county <- c("Adams", "Brown", "Bureau", "Cass", "Champaign", "Christian", "Coles", "De Witt", "Douglas", "Edgar", "Adams", "Ashland", "Barron", "Bayfield", "Buffalo

[R] Neural network

2007-09-01 Thread Megh Dal
Dear all R users, Please ignore it if you feel it is 'off-topic'. Can anyone here suggest me some good books on Application of Neural network on time series forecasting? Regards, - [[alternative HTML version deleted]] _