Re: [R] Newbie Question: Using R with PHP and MySQL

2007-08-24 Thread Ryan
What's the best reference, if there is one, for PHP, MySQL, R integration? It is possible to integrate PHP, R and MySQL, but I don't have a good reference for you. If all you need are a few simple charts, then I think it would be easiest for you to forget about R and use some other

Re: [R] Newbie Question: Using R with PHP and MySQL

2007-08-24 Thread Eric Theise
On 8/22/07 1:31 PM, MASFERFC Team wrote: I'd like to (more or less) simultaneously return to the browser a couple of canned charts and graphs based on the data. Nothing fancy, two pie charts and two simple bar-charts to start. I need to generate these on-the-fly, based on the results of the

[R] Newbie Question: Using R with PHP and MySQL

2007-08-23 Thread MASFERFC Team
First, I should admit that I didn't do a lot of searching beforehand, I'm just cutting to the chase to ask the experts: I'm currently running MySQL 5 queries with PHP 5.2.3 and returning results to the end-user in web-page tables of ca. 50 rows by 5 columns. I'd like to (more or less)

Re: [R] Newbie Question: Using R with PHP and MySQL

2007-08-23 Thread Dieter Menne
MASFERFC Team masferfc at gmail.com writes: I'm currently running MySQL 5 queries with PHP 5.2.3 and returning results to the end-user in web-page tables of ca. 50 rows by 5 columns. I'd like to (more or less) simultaneously return to the browser a couple of canned charts and graphs based on

[R] Statistics Question not R question: competing risks and non-informative censoring

2007-07-03 Thread sj
All, I am working with Emergency Department (ED) Length of Stay Data. The ED visit can end in one of a variety of ways (Admit, discharge, transfer, etc...) Initially, I have modeled the time to event by fitting a survival model to the time the outcome of interest and treat all other outcomes

Re: [R] A Question about R

2007-06-14 Thread M. P. Papadatos
Hi, This might help you: https://stat.ethz.ch/pipermail/r-help/2000-February/009984.html Martin On 11 Jun 2007, at 20:50, [EMAIL PROTECTED] wrote: Hi Sir/Madam, I'm a researcher in university of Guelph, Canada and now considering using R to do some data analysis. I'm wondering whether

[R] A Question about R

2007-06-11 Thread jwang
Hi Sir/Madam, I'm a researcher in university of Guelph, Canada and now considering using R to do some data analysis. I'm wondering whether there is a library available in R that includes algorithms for archetypal analysis? This is a method quite similar to principal components analysis

[R] Odp: Question about R

2007-04-05 Thread Petr PIKAL
Hi isnt it a homework? FYI see ?list ?vector ?data.frame ?sample ?lapply and some basic stuff like Introduction manual provided with your R instalation to see how some simple data manipulations can be done. Regards Petr Pikal [EMAIL PROTECTED] [EMAIL PROTECTED] napsal dne 05.04.2007

[R] Quick Question about R

2007-01-31 Thread Konrad
Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At the moment I'm using as.numeric but it is generating a warning when it converts a letter. Is there another

Re: [R] Quick Question about R

2007-01-31 Thread Benilton Carvalho
suppressWarnings(a - as.numeric(c(1, 2, pi, a, 9, z))) b On Jan 31, 2007, at 2:35 PM, Konrad wrote: Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At

Re: [R] Quick Question about R

2007-01-31 Thread Chuck Cleland
Konrad wrote: Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At the moment I'm using as.numeric but it is generating a warning when it converts a

Re: [R] Quick Question about R

2007-01-31 Thread Marc Schwartz
On Wed, 2007-01-31 at 14:35 -0500, Konrad wrote: Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At the moment I'm using as.numeric but it is generating a

Re: [R] Quick Question about R

2007-01-31 Thread Ted Harding
On 31-Jan-07 Konrad wrote: Hello, Is there a way to convert a character to a number with out getting a warning? I have a vector that has both numbers and letters in it and I need to convert it to only numbers. At the moment I'm using as.numeric but it is generating a warning when it

Re: [R] Quick Question about R

2007-01-31 Thread Ted Harding
On 31-Jan-07 Benilton Carvalho wrote: suppressWarnings(a - as.numeric(c(1, 2, pi, a, 9, z))) Of course! Much better! Ted. E-Mail: (Ted Harding) [EMAIL PROTECTED] Fax-to-email: +44 (0)870 094 0861 Date: 31-Jan-07

Re: [R] Quick Question about R

2007-01-31 Thread Marc Schwartz
On Wed, 2007-01-31 at 20:02 +, [EMAIL PROTECTED] wrote: On 31-Jan-07 Benilton Carvalho wrote: suppressWarnings(a - as.numeric(c(1, 2, pi, a, 9, z))) Of course! Much better! Ted. In the context of my prior reply: # Bear in mind that the above vector is of class character, not mixed...

Re: [R] A question about R environment

2007-01-10 Thread François Pinard
[Philippe Grosjean] Please, don't reinvent the wheel: putting functions in a dedicated environment is one of the things done by R packages (together with a good documentation of the function, and making them easily installable on any R implementation). [...] this is probably the time for you

Re: [R] A question about R environment

2007-01-09 Thread Tong Wang
a lot. Happy new year every one! cheers tong - Original Message - From: Philippe Grosjean [EMAIL PROTECTED] Date: Monday, January 8, 2007 10:09 pm Subject: Re: [R] A question about R environment To: François Pinard [EMAIL PROTECTED], Tong Wang [EMAIL PROTECTED], R help r-help

Re: [R] A question about R environment

2007-01-09 Thread Tong Wang
, January 8, 2007 10:40 pm Subject: Re: [R] A question about R environment To: Gabor Grothendieck [EMAIL PROTECTED] Cc: Tong Wang [EMAIL PROTECTED], R help r-help@stat.math.ethz.ch sourceTo() in R.utils will allow you to source() a file into an environment. /Henrik On 1/9/07, Gabor Grothendieck

Re: [R] A question about R environment

2007-01-09 Thread Prof Brian Ripley
. tong - Original Message - From: Henrik Bengtsson [EMAIL PROTECTED] Date: Monday, January 8, 2007 10:40 pm Subject: Re: [R] A question about R environment To: Gabor Grothendieck [EMAIL PROTECTED] Cc: Tong Wang [EMAIL PROTECTED], R help r-help@stat.math.ethz.ch sourceTo

[R] A question about R environment

2007-01-08 Thread Tong Wang
Hi all, I created environment mytoolbox by : mytoolbox - new.env(parent=baseenv()) Is there anyway I put it in the search path ? If you need some background : In a project, I often write some small functions, and load them into my workspace directly, so when I list the objects

Re: [R] A question about R environment

2007-01-08 Thread Gabor Grothendieck
Try this: e - new.env() e$f - function(x)x attach(e) search() [1] .GlobalEnve package:stats [4] package:graphics package:grDevices package:utils [7] package:datasets package:methods Autoloads [10] package:base f function(x)x On 1/8/07, Tong Wang [EMAIL

Re: [R] A question about R environment

2007-01-08 Thread François Pinard
[Tong Wang] I created environment mytoolbox by : mytoolbox - new.env(parent=baseenv()). Is there anyway I put it in the search path? In a project, I often write some small functions, and load them into my workspace directly, so when I list the objects with ls(), it looks pretty messy. So I

Re: [R] A question about R environment

2007-01-08 Thread Philippe Grosjean
Please, don't reinvent the wheel: putting functions in a dedicated environment is one of the things done by R packages (together with a good documentation of the function, and making them easily installable on any R implementation). So, this is probably the time for you to read the Writing R

Re: [R] A question about R environment

2007-01-08 Thread Henrik Bengtsson
sourceTo() in R.utils will allow you to source() a file into an environment. /Henrik On 1/9/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try this: e - new.env() e$f - function(x)x attach(e) search() [1] .GlobalEnve package:stats [4] package:graphics

Re: [R] stat question - not R question so ignore if not interested

2006-12-06 Thread David Farrar
. Park; Leeds,Mark (IED) Subject: Re: [R] stat question - not R question so ignore if not interested A classic example used by my colleague Paul Rozin (when he teaches Psych 1) is to compute the correlation between height and number of shoes owned, in the class. Shorter students own more shoes

[R] stat question - not R question so ignore if not interested

2006-12-05 Thread Leeds, Mark \(IED\)
If do a scattrplot of data ( x and y ) and there are two clouds of points. One cloud is in the left bottom corner of the plot and the other cloud is in the upper right. If I fit a regression line to this data ( or equivalently , calculate a correlation ), then obviously, it is going to seem like

Re: [R] stat question - not R question so ignore if not interested

2006-12-05 Thread Richard M. Heiberger
The missing piece is why there are two clusters. There is most likely a two-level factor distinguishing the groups that was not included in the model. It might not even have been measured and now you need to find it. Rich __ R-help@stat.math.ethz.ch

Re: [R] stat question - not R question so ignore if not interested

2006-12-05 Thread Jonathan Baron
A classic example used by my colleague Paul Rozin (when he teaches Psych 1) is to compute the correlation between height and number of shoes owned, in the class. Shorter students own more shoes. But ... On 12/05/06 16:34, Richard M. Heiberger wrote: The missing piece is why there are two

Re: [R] stat question - not R question so ignore if not interested

2006-12-05 Thread Michael Kubovy
On Dec 5, 2006, at 3:42 PM, Leeds, Mark ((IED)) wrote: If do a scattrplot of data ( x and y ) and there are two clouds of points. One cloud is in the left bottom corner of the plot and the other cloud is in the upper right. If I fit a regression line to this data ( or equivalently ,

Re: [R] stat question - not R question so ignore if not interested

2006-12-05 Thread Bert Gunter
94404 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Baron Sent: Tuesday, December 05, 2006 1:45 PM To: Richard M. Heiberger Cc: r-help@stat.math.ethz.ch; C. Park; Leeds,Mark (IED) Subject: Re: [R] stat question - not R question so ignore

Re: [R] General Question re R vs S-Plus

2005-05-08 Thread Peter Dalgaard
Liaw, Andy [EMAIL PROTECTED] writes: My preference is to learn the language and the windows interface doesn't really do the trick. My question is, if one uses the windows interface for some functions, is there a way to see what the equivalent code would be? I have checked the manuals,

Re: [R] General Question re R vs S-Plus

2005-05-08 Thread Jonathan Q.
thanks, that does the trick On 08 May 2005 10:11:47 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Liaw, Andy [EMAIL PROTECTED] writes: My preference is to learn the language and the windows interface doesn't really do the trick. My question is, if one uses the windows interface for

Re: [R] General Question re R vs S-Plus

2005-05-08 Thread Spencer Graves
Unfortunately, many of the S-Plus GUI functions are NOT written in S. For example, S-Plus 6.2 put the following into History while executing the GUI equivalent of plot(1:3): guiPlot( PlotType = Scatter, AxisType = Linear) guiModify( LinePlot, Name = GS1$1$1, DataSet = 1:3) One

Re: [R] General Question re R vs S-Plus

2005-05-08 Thread Jonathan Q.
so if I read all the answers to my post correctly, the best is to just use the command letter in S-Plus or better yet use R. thanks to all. On 5/8/05, Spencer Graves [EMAIL PROTECTED] wrote: Unfortunately, many of the S-Plus GUI functions are NOT written in S. For example, S-Plus 6.2

[R] General Question re R vs S-Plus

2005-05-07 Thread Jonathan Q.
Coming up to speed on both R and S-Plus. My access to S-Plus will end soon so I want to get up to speed on R. The big initial difference seems that R has only the command editor where S-Plus also has a windows interface. My preference is to learn the language and the windows interface doesn't

RE: [R] General Question re R vs S-Plus

2005-05-07 Thread Liaw, Andy
From: Jonathan Q. Coming up to speed on both R and S-Plus. My access to S-Plus will end soon so I want to get up to speed on R. The big initial difference seems that R has only the command editor where S-Plus also has a windows interface. What exactly do you mean by this? What would you

[R] A question about r-help-bounce

2005-01-11 Thread apjaworski
Could somebody please tell me what does the r-help-bounce address do? When I try to respond to an r-help post, my mailer (Lotus Notes) generates the r-help bounce return address automatically in addition to the original sender address and the r-help address. I responded to an r-help message

[R] A question in R

2004-10-12 Thread Yayira har
I started to learn the R language, but I didn't suceed to use an external file. Let say that I have an excel file called test1.xls in the directory C:/program files/R/rw2000/external_files that looks like that: name mark yair 80 yosi 70 ... In the appropriate directory I

Re: [R] A question in R

2004-10-12 Thread Kevin Bartz
Yayira har wrote: I started to learn the R language, but I didn't suceed to use an external file. Let say that I have an excel file called test1.xls in the directory C:/program files/R/rw2000/external_files that looks like that: name mark yair 80 yosi 70 ... In the

Re: [R] A question in R

2004-10-12 Thread Sundar Dorai-Raj
Yayira har wrote: I started to learn the R language, but I didn't suceed to use an external file. Let say that I have an excel file called test1.xls in the directory C:/program files/R/rw2000/external_files that looks like that: name mark yair 80 yosi 70 ... In the

Re: [R] A question in R

2004-10-12 Thread Prof Brian Ripley
Take a look at the `R Data Import/Export' manual. Hint: if test1.xls is an Excel worksheet, it is not a tab-delimited file. On Tue, 12 Oct 2004, Yayira har wrote: I started to learn the R language, but I didn't suceed to use an external file. Let say that I have an excel file called

Re: [R] A question in R

2004-10-12 Thread Yves Magliulo
hi, check R-data import/export document at this link cran.r-project.org/doc/manuals/R-data.pdf let me give you an advice for further questions : it's easiest to find answer to your question searching directly with google -- -- Yves Magliulo [EMAIL PROTECTED] RD Engineer, CLIMPACT Tel.

Re: [R] A question in R

2004-10-12 Thread Kevin Wang
Hi, On Tue, 12 Oct 2004, Kevin Bartz wrote: R looks less than fondly on Excel files. The easiest solution for you will be to export your Excel file to a tab-delimited text format (Save - (.txt) Tab-delimited Text), and then use read.delim as you did. Does that make sense? The alternative

[R] ONE QUESTION IN R-PROJECT

2004-05-05 Thread
Hello: I have already found references optim , but I do not understand its means !! So I want to ask next question I have a question in Math. If we want to get X's and Y's solution, X0 and Y0 We have two equation : 2*exp(X)+X^2+3*Y=2*exp(1)+4 3*exp(X/Y)+3*X*Y+4*Y=3*exp(1)+7 How I use R-project

Re: [R] ONE QUESTION IN R-PROJECT

2004-05-05 Thread Martin Maechler
You've been answered a few days ago when you asked (almost?) the same question. Now you've sent it *again* and even twice to the mailing list. How can we know that you are not just a student who is too lazy to do his/her homework? ßõÊ == ßõÊ [EMAIL PROTECTED] on Wed, 5 May 2004 18:51:41

[R] ONE QUESTION IN R-PROJECT

2004-05-01 Thread
Hello: I have a question in Math. If we want to get X's and Y's solution, X0 and Y0 We have two equation : 2*exp(X)+X^2+3*Y=2*exp(1)+4 3*X+4*(Y^2)=7 How I use R-project to solve above question?? THANKS YOU HLC [[alternative HTML version

Re: [R] ONE QUESTION IN R-PROJECT

2004-05-01 Thread Spencer Graves
It depends. If I had only this specific set of equations to solve, and I wanted an answer in the next few minutes, I might solve the second equation to give X in terms of Y , substitute the result in the first, then plot the result over a range that seemed plausible. fun2 - function(Y){ X -

Re: [R] re: question on R

2003-04-14 Thread Ko-Kang Kevin Wang
Hi, It is a mailing list for users to help users on a volutary basis. There are, I think, thousands of people on this list. The idea is if one has a question regarding R, one will post to this list and someone will answer it. Usually the question will be answered by several people using