[R] Could not install aroma.affymetrix

2008-03-01 Thread My Coyne
I don't know if this is the correct forum to ask the following question; however, when I search the aroma.affymetrix discussion group, it suggested that I should posted the question to r-help. Here it goes. I followed the instructions on aroma.affymetrix trying to install the packages; followi

Re: [R] Getting started help

2008-02-19 Thread My Coyne
Hi Rthoughts, Don't be discouraged I'm learning R on/off for classes and when I was under pressure to get work done, learning R likes pulling my hair (and teeth) off of frustration. But, this forum is great; I got so much help from this forum. I use R on windows as well. After install R, i

Re: [R] Specify Path of an Excel file in R

2008-02-17 Thread My Coyne
Try: X<- read.csv ("") or Y<- read.delim("", sep=",", header=T) Example, if your file is in C-directory, file name is my_file, and the file has a header. X<- read.csv("c:\\my_file") or Y<- read.delim("c:\\my_file", sep=",", header=T) My D. Coyne -Original Message- From: [EMAIL PROTEC

[R] How to handle Which on two matrices that do not have same number of rows

2008-02-13 Thread My Coyne
R-newbie question I have 2 matrices (a) P1 has only one column of 32K rows (b) PC has 2 column {P, C} of 3200 rows Every values in P1 matches with a value in PC[,p] (column p). I would like to use Which to search for all value in P1 that matchex PC[,p] and get the PC[,c]. However

[R] Ignore error t.test in a loop

2008-02-02 Thread My Coyne
Hi, I place a t.test in a loop and would like to continue to process the loop even when t.test encounter error. How do I do that?For example, in one iteration, the data is completely constant and t.test gives error, the entire program terminates. I would like to write the information out to

[R] replace Null with NA

2008-02-01 Thread My Coyne
I would like to replace all null ("") in a column of a matrix to NA, how would I do that without a do loop? Thanks --mc [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/l

[R] dynamic SQL query in RMySQL

2008-02-01 Thread My Coyne
Is there a way to perform a dynamic SQL query in R, using RMySQL? Thanks My D. Coyne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] samr error

2008-01-22 Thread My Coyne
I'm running samr (Two class unpaired), but keep getting the following error: perm= 1 Error in if (logged2) { : argument is of length zero library (impute) library (samr) data = list (x=dat, y=y, geneid = matrix(twoUnpaired.data[,1],ncol=1), genenames = matrix(twoUnpaired.data[,2], ncol=1))

[R] data frame to matrix

2008-01-22 Thread My Coyne
Hello, I have a data frame and would like to convert it into a matrix, how do I do that? Thanks --My Coyne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] In chisq.test(x) : Chi-squared approximation may be incorrect

2008-01-15 Thread My Coyne
got "Chi-squared approximation may be incorrect" is because probably there are less than 5 observations in the cell. Maybe will help to try fisher.test() Cheers Anna - Messaggio originale ----- Da: My Coyne <[EMAIL PROTECTED]> A: [EMAIL PROTECTED] Inviato: Lunedì 14

Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
new.mat <- mat[ , colSums( mat==0 ) == 0, drop=FALSE ] This works great. I'm learning this R slowly... It is quite powerful. Thanks -Original Message- From: Charles C. Berry [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 3:47 PM To: My Coyne Cc: [EMAIL P

Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
PM To: My Coyne Cc: [EMAIL PROTECTED] Subject: Re: [R] Newbie Question -- Remove entire column in a matrix On Tue, 15 Jan 2008, My Coyne wrote: > > > I'm ordering "The R Book" and hope to learn a lot more about R. In a > meantime, I have a matrix of digits and I w

[R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
, I think the R-experts have more tricks to do such a 'simple' thing. Many thanks in advance. --My Coyne [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] In chisq.test(x) : Chi-squared approximation may be incorrect

2008-01-14 Thread My Coyne
Hello, I received the following warning when running chi-square; n Is there a way to catch the 'error' code of 'warning' after run chisq.test(x)? n What does this error mean? Thank you for your help. [[alternative HTML version deleted]] _

Re: [R] Retrieve results from chisq.test programmatically

2008-01-14 Thread My Coyne
of the test. chisq.test(x)$statistic will give you the x-squared result, if you only want the number chisq.test(x)$statistic[[1]] can retrieve the numeric value. So you can simply write a loop to do the test and save the results in some matrix. I hope it helps Jingru Dai My Coyne wrote

[R] Retrieve results from chisq.test programmatically

2008-01-14 Thread My Coyne
Hello, I would like to run a series of chisq.test() and store results (x-square, df, p-value) in a matrix for further analysis, but don't know how to do such. Currently I run the command line for each set of data at a time and it is time consuming. Thank you for your help. --My

[R] For Loop performance

2008-01-13 Thread My Coyne
Hello, Newbie question and hope you can help . I have two vector V1 and V2, where length(V2) = length of (V1) * 2; length(V1) ~ 16,000. For each member in V1, I need to compare 2 element of V2 for equality i.e. for (I in 1:length (V1)) { if ( v2[i] == v1[i] & v2[i+1]==v1[i] ){

[R] Retrieve only part of a matrix

2008-01-13 Thread My Coyne
Hi All, I'm new with R; this is a basic question. I was given a matrix I of (nrow, ncol), I would like to create another matrix A with some data in the matrix I, say [1,4] (row 1, column 4) to [271,19000] (row 271, column 19000). How do I do this? Please help. Thank you very much. --mc