Re: [R] R data Export to Excel

2008-03-02 Thread Wensui Liu
hi, did you try write.xls in xlsReadWrite package? On Sun, Mar 2, 2008 at 9:59 PM, Keizer_71 <[EMAIL PROTECTED]> wrote: > > Here is my R Code > > x<-1:2 > y<-2:141 > data.matrix<-data.matrix(data[,y])#create data.matrix > variableprobe<-apply(data.matrix[x,],1,var) > variableprobe #outp

Re: [R] R data Export to Excel

2008-03-02 Thread Christophe Lo
thanks for your response. How do i install it? I try looking at the manual it doesn't seem indicate any installation instruction. I also download a windows version but it doesn't have an exe file. http://cran.r-project.org/web/packages/xlsReadWrite/index.html Newbie, Kei On 3/3/08, Wensui Liu <

Re: [R] R data Export to Excel

2008-03-02 Thread Wensui Liu
i think you simply install it in the way you install other R packages. On Sun, Mar 2, 2008 at 10:40 PM, Christophe Lo <[EMAIL PROTECTED]> wrote: > thanks for your response. How do i install it? I try looking at the manual > it doesn't seem indicate any installation instruction. I also download a >

Re: [R] plotting to stdout (while reading from stdin?)

2008-03-02 Thread Gene Selkov
On Sun, 2 Mar 2008, Gabor Grothendieck wrote: > You can do this: > > Lines <- "A,B > 1,2 > 3,4" > DF <- read.csv(textConnection(Lines)) > > which is slightly simpler than the examples there. Thank you Gabor, I made it even simpler by replacing the Lines object with a string contstant. It wor

[R] R function to convert a number to text

2008-03-02 Thread lin tang
hi, Dear R users - I wonder is there a written R function to convert a number to a text, say convert 1 to "one" , 100 to "one hundred". I know in xls. has such a function BAHTTEXT, does anybody know is there a similar function in R ? Thanks. Lin -

Re: [R] insert vector image into a plot

2008-03-02 Thread Paul Murrell
Hi William Morris wrote: > How can I insert a vector image in svg or pdf format into a plot. > Basically i need the equivalent of what the 'pixmap' package does for > bitmap images. 'grImport' See ... http://cran.r-project.org/web/packages/grImport/index.html http://www.stat.auckland.ac.nz

[R] Problem with PCA

2008-03-02 Thread phthao05
I have an exercise. With 3 kinds of yohourt a,b,c. There are 25 participatients estimate 3 norms: taste (va,vb,vc), structure (ca,cb,cc) and price (ga,gb,gc) and give the mark from 1 to 5. I don't know how to PCA this data. Please help me! I attached the data file follow: Va Vb Vc C

[R] Constrained regression

2008-03-02 Thread Carlos Alzola
Dear list members, I am trying to get information on how to fit a linear regression with constrained parameters. Specifically, I have 8 predictors , their coeffiecients should all be non-negative and add up to 1. I understand it is a quadratic programming problem but I have no experience in the su

[R] handling big data set in R

2008-03-02 Thread shu zhang
Hello R users, I'm wondering whether it is possible to manage big data set in R? I have a data set with 3 million rows and 3 columns (X,Y,Z), where X is the group id. For each X, I need to run 2 regression on the submatrix. I used the function "split": datamatrix<-read.csv("datas.csv", header=F,

[R] handling big data set in R

2008-03-02 Thread shu zhang
Hello R users, I'm wondering whether it is possible to manage big data set in R? I have a data set with 3 million rows and 3 columns (X,Y,Z), where X is the group id. For each X, I need to run 2 regression on the submatrix. I used the function "split": datamatrix<-read.csv("datas.csv", header=F,

Re: [R] Problem with PCA

2008-03-02 Thread Richard Rowe
This is a homework problem. I know how to do a PCA, you need to learn. I suggest you visit your textbook, then check the documentation for R's various PCA implementations to work out how to effect the analysis. phthao05 wrote: > I have an exercise. With 3 kinds of yohourt a,b,c. There are 25 >

Re: [R] unable to start device PNG and unable to open connection to X11 display

2008-03-02 Thread Prof Brian Ripley
Please consult the help page for png. On Mon, 3 Mar 2008, Ng Stanley wrote: > Hi, > > I have installed R on a computational cluster, and am using putty to access > R. Please help on how to solve the problem of saving png files. > >> png(file="myplot.png", bg="transparent") > Error in X11(paste("p

Re: [R] R data Export to Excel

2008-03-02 Thread Hans-Peter
> > it doesn't seem indicate any installation instruction. > http://cran.r-project.org/web/packages/xlsReadWrite/index.html As Wensui Liu already mentioned, installation is the same as with other packages: In the RGui menu select Packages->Install Packages...->(Select a CRAN mirror)->(Select the

[R] Attempting to connect to an Empress RDBMS via RODBC 1.2-3 causes R 2.6.2.pat to segfault

2008-03-02 Thread Michael Manning
Hi I've experienced some unpleasant behaviour while attempting to connect to an Empress 8.6.2 RDBMS via RODBC 1.2-3 and a freshly minted R 2.6.2.pat on a SLED linux system where a call to odbcConnect() to initiate the odbc connection causes R 2.6.2.pat to segfault. The odbcConnect call is CHA

[R] Formating a zoo dataset .

2008-03-02 Thread Megh Dal
Suppose I have following dataset : > head(data1) Date Return 1 03/31/00 0.14230650 2 04/28/00 -0.03276228 3 05/31/00 -0.06527890 4 06/30/00 -0.04999873 5 07/31/00 -0.01447902 6 08/31/00 0.22265729 Now I convert it to zoo object : > data11 = zoo(data1[,2], as.Date(data1[,1],

[R] Studdy Missing Data, differentiate between a percent with in the valid answers and with in the different missing answers

2008-03-02 Thread Ericka Lundström
Hi R experts I'm trying to emigrate from SPSS to R, thou I have some problems whit getting R to distinguish between the different kind of missing. I want to distinguish between data that are missing because a respondent refused to answer and data that are missing because the question didn't

Re: [R] glm: offset

2008-03-02 Thread Ted Harding
On 03-Mar-08 03:19:01, Wensui Liu wrote: > HI, John, > my understanding is that you should use log(...) instead of its > original scale. Below is the logic in the case of poisson reg. > log(y / offset) = x'b > => log(y) - log(offset) = x'b > => log(y) = x'b + log(offset) Well, this is where it get

<    1   2