[Rpy] How to use summary command in Rpy?

2008-01-09 Thread zhang chi
I write three line porgram as following: rt = r.read_table("exam0203.txt", header=1) lm_sol = r.lm("Weight ~ Height", data = rt) r.summary(lm_sol) the first line is to read a file the second line is to make a linear regression the third line is to display the content of variate lm_sol but there i

[Rpy] how to read a file in rpy environment?

2008-01-07 Thread zhang chi
I have a file. The filename is test.txt Its contents is: Name Sex Age Height Weight Alice F 13 56.5 84.0 Becka F 13 65.3 98.0 Gail F 14 64.3 90.0 Karen F 12 56.3 77.0 Kathy F 12 59.8 84.5 Mary F 15 66.5 112.0 Sandy F 11 51.3 50.5 Sharon F 15 62.5 112.5 Tammy F 14 62.8 102.5 Alfred M 14 69.0 112.5

Re: [Rpy] How can add-on packages be used in Rpy?

2008-01-06 Thread zhang chi
Thank you very much:) On Jan 6, 2008 7:34 PM, Barry Rowlingson <[EMAIL PROTECTED]> wrote: > zhang chi wrote: > > For example: > > I install a package like the following: > > > > R CMD INSTALL ~/kernlab_0.9-5.tar.gz > > > > I use this package like th

[Rpy] How can add-on packages be used in Rpy?

2008-01-06 Thread zhang chi
For example: I install a package like the following: R CMD INSTALL ~/kernlab_0.9-5.tar.gz I use this package like the following: library(kernlab) rbf <- rbfdot(sigma = 0.05) My questions is how I can use this package in Rpy environment? thank you very much.

[Rpy] a question about SCALE function.

2007-12-18 Thread zhang chi
I find a scale function in R language. But in Rpy, I can't use r.scale(), is there a scale() function in Rpy? this is my first use mail list , I don't know if I mail this message to the correct address. If I disturb, I am very sorry about it . good luck -