Re: [R] How to handle missing values for the GeneMeta package?

2009-09-22 Thread Payam Minoofar
he problem. :) Payam ______ Payam Minoofar, Ph.D. Scientist Meissner Filtration Products 4181 Calle Tesoro Camarillo, CA 93012 +1 805 388 9911 ext. 159 +1 805 388 5948 fax payam.minoo...@meissner.com > Hello all, > > It seems that the GeneMeta passage returns NA in the respective row if >

[R] pruning data

2009-09-02 Thread Payam Minoofar
that contain a single NA value. I want to know if there is a simple way to determine if a row (about 20 columns) contains a single NA value without running a loop that checks each individual cell. Thanks in advance. __ Payam Minoofar, Ph.D. Scientist Meissner Filtration

[R] pls package

2009-09-01 Thread Payam Minoofar
package and the Vol 6 no. 3 issue of the R Newsletter. Payam __ Payam Minoofar, Ph.D. Scientist Meissner Filtration Products 4181 Calle Tesoro Camarillo, CA 93012 +1 805 388 9911 ext. 159 +1 805 388 5948 fax payam.minoo...@meissner.com

[R] Pls package

2009-08-28 Thread Payam Minoofar
preciated. Thank you very much, in advance. Payam -- Payam Minoofar, Ph.D. Scientist Meissner Filtration Products 4181 Calle Tesoro Camarillo, CA 93012 USA +1 805 388 9911 +1 805 388 5948 fax payam.minoo...@meissner.com [[alternative HTML version deleted]] _

[R] Placing text outside graph boundary

2009-06-25 Thread Payam Minoofar
. I would like to add one title for the entire figure at the top of the figure, but I cannot figure out how to do that without anchoring the title one of the graphs. Is it possible to do that? Thank you very much. Payam -- Payam Minoofar, Ph.D. Scientist Meissner Filtration Products 4181 Calle

[R] Modifying graphs

2009-06-15 Thread Payam Minoofar
The function creates boxplots in a quartz window. quartz(width=6,height=5,dpi=200) boxplot(tframe[,x2] ~ tframe[,x1], font.main=1, main=gtitle,xlab=names(tframe[x1]),ylab=names(tframe[x2]), notch=FALSE, varwidth=TRUE) Thank you in advance. Payam -- Payam Minoofar, Ph.D. Scientist Mei

[R] Help with syntax error

2009-06-15 Thread Payam Minoofar
Hi, I have written boxplot commands of this form before, but I don't quite understand why the function call is reporting a syntax error in this instance. All parameters passed to the function are strings. Thanks in advance. Payam > simplevar <- function(wframe,column1,column2) { + tframe

Re: [R] Referencing data frames

2009-06-15 Thread Payam Minoofar
hen we may be able to give better advice on how to accomplish your final goal using the power of R. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun

[R] Extracting the name of an object

2009-06-12 Thread Payam Minoofar
With apologies if I missed the answer in the response given to my previous question. How do I extract the name of an object and assign it to a string variable? For example, I have a dataframe named comnoglyc How do I assign this name to a variable dfname such that print(dfname) returns "comnog

[R] Referencing data frames

2009-06-12 Thread Payam Minoofar
and 2) pass on a string to a function as a parameter, and then use that string to refer to an existing data frame. Thanks in advance. Payam -- Payam Minoofar, Ph.D. Scientist Meissner Filtration Products 4181 Calle Tesoro Camarillo, CA 93012 USA +1 805 388 9911 +1 805 388 5948 fax payam.minoo

[R] More basic question

2009-06-11 Thread Payam Minoofar
Never mind the query regarding setting attributes. I just found the relevant section in the manual. The only remaining question is regarding doing string comparisons in sapply argument below. Thank you. Payam I have encountered a more fundamental problem in my data set. I'm using read.csv, a

[R] More basic question

2009-06-11 Thread Payam Minoofar
I have encountered a more fundamental problem in my data set. I'm using read.csv, and all the data are imported as character. How do I do a string comparison in a line like this: M10[ !sapply(1:10, function(x)666 %in% M10[x,]), ] Alternately, how do I change the class type on a column in a data

Re: [R] Matrix manipulation

2009-06-11 Thread Payam Minoofar
On 6/11/09 2:13 PM, "William Dunlap" wrote: > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of David Winsemius > Sent: Thursday, June 11, 2009 1:49 PM > To: Payam Minoofar > Cc: r-help@r-project.org

[R] Matrix manipulation

2009-06-11 Thread Payam Minoofar
quot;. I have figured out how to assign a sequence vector to the row names, but I am wondering if there is a built-in command that does the same thing. (I.e., change the name of row 7 to "7" from "8".) Thank you very much. Payam -- Payam Minoofar, Ph.D. Scientist Meissner Filt