[R] S4: Multiple inheritance

2010-03-23 Thread Christophe Genolini
Hi all, Working with S4 object, I definine two class foo1 and foo2. I define '[' (resp. '[<-') for the two classes. Then I define a third class foo3 that inherit from both foo1 and foo2. Is there a way to make '[' (resp. '[<-') for foo3 inherit from '[' (resp. '[<-') for foo1 and foo2? Than

[R] Log linear model - Showing non-deviation form in glm()

2010-03-23 Thread Christoffer Karlsson
Hey, Whenever I set up a log linear model using glm(Y~. , data=data, family=poisson) I get the parameters in the form of deviation from the first cell kombination. I find this to be hard to interpret when I for instance want to know if there is a difference between two factors in the first catego

Re: [R] R script From PHP

2010-03-23 Thread Romain Francois
Hello, You might like the php client to Rserve that is part of the next version of Rserve. see http://www.rforge.net/Rserve/svn.html install the last snapshot, and check the client/php/simple.php file If you decide to go this way, then I'd suggest you use the stats-rosuda-devel mailing list

Re: [R] maxNR - Error in p(a, b) : element 1 is empty; the part of the args list of '*' being evaluated was: (b, t)

2010-03-23 Thread Arne Henningsen
On 22 March 2010 16:31, 4-real wrote: > > Hello everyone... > We were trying to implement the Newton-Raphson method in R, and estimate the > parameters a and b, of a function, F, however we can't seem to implement > this the right way. Hope you can show me the right way to do this. I think > what

Re: [R] printing text within if functions inside a for loop

2010-03-23 Thread Mario Valle
Use: cat(sprintf("Long on %s at a price of %f\n",dates[j],data[j])) Hope it helps mario Tian Pan wrote: > Hi > > I am having a problem with outputting text inside an if function. I have the > following code: > > for (j in 20:length(bb.up)) > { > if (up[j]==1 && up[j-1]=

[R] printing text within if functions inside a for loop

2010-03-23 Thread Tian Pan
Hi I am having a problem with outputting text inside an if function. I have the following code: for (j in 20:length(bb.up)) { if (up[j]==1 && up[j-1]==0) { sprintf("Long on %s at a price of %f",dates[j],data[j]) } if (down[j]==1 && down[j-1]==0) { sprintf("Short on %s at a price of %f",d

[R] Author "R" books- Packt Publishing.

2010-03-23 Thread Kshipra Singh
Hi All, I am writing to you for Packt Publishing, the publishers of computer related books. We are planning to extend our catalogue of books based on Scientific Computing Tools and are currently inviting authors interested in writing for Packt. This doesn't need any previous writing experien

[R] Linear Discriminant Analysis

2010-03-23 Thread L L
Hi, I was wondering if you can show me how to plot the discriminant boundary lines for an LD analysis in R. I am curious as to perform this on a larger scale, so I was wondering if you can provide me an example on the infamous 'iris' data. Here's what I have so far: iris.lda=lda(Species ~., d

[R] how to use node info generated by rpart in mars?

2010-03-23 Thread vibha patel
I am working on rpart, mars and earth. they all work fine individually. but i want to use node information generated by rpart in earth or mars. (mars is sensitive to outliers. CART deals effectively with outliers.) is there any way to perform this? Thanks. [[alternative HTML version dele

Re: [R] R script From PHP

2010-03-23 Thread sanchow
Hello, I am having the same problem. My webmaster is not ready to install R on the web server. Is there a way to run R on a remote linux cluster and POST results from the remote server to my website? I am sorry if this is more of a PHP question. Thank you and Any help appreciated. S -- View t

[R] If else statements

2010-03-23 Thread tj
Hi everyone! May I request again for your help? I need to make some codes using if else statements... Can I do an "if-else statement" inside an "if-else statement"? Is this the correct form of writing it? Thank you.=) Example: for (v in 1:6) { for (i in 2:200) { if (v==1) (if max(x*v-y*v)>1 b

[R] Problem installing package

2010-03-23 Thread Craig Woodward
Dear r-help users, I have just downloaded the package vegan and I have problems accessing the data to go through the examples in the tutorial. I can see the data when I type "data()" but I am told that the data doesn't exist when I type the name of one of the variables e.g.: > varespec Error:

[R] package precedence question

2010-03-23 Thread step...@mnemosyne.co.uk
Dear R help I am writing a package where I am intending to extend the png function of the grDevices package. When I load my package, my png function indeed substitutes the grDevices function, and everything seems OK. I am a little confused though at how function precedence is determined. I am c

Re: [R] Error while trying to save summary() output as csv

2010-03-23 Thread Kamil Sijko
Thank you David, thank you Ista - as.matrix solves the problem. Best regards, Kamil Sijko +48.790.818.212 2010/3/22 David Winsemius : > > On Mar 22, 2010, at 3:06 PM, Ista Zahn wrote: > >> Hi Kamil, >> You can use something like >> write.csv(t(as.matrix(object)), file="name.csv") >> >> -Ista >>

[R] how to use node info generated by rpart in mars?

2010-03-23 Thread vibha patel
I am working on rpart, mars and earth. they all work fine individually. but i want to use node information generated by rpart in earth or mars. (mars is sensitive to outliers. CART deals effectively with outliers.) is there any way to perform this? Thanks. [[alternative HTML version dele

<    1   2