Re: [R] how do i retain decimal values

2009-08-03 Thread Manisha Brahmachary
To: Manisha Brahmachary Cc: r-help@r-project.org Subject: Re: [R] how do i retain decimal values You've already been pointed to options(digits=); here's another way: since your data appear to be limited to 2 decimals, why not select your noise from UNIF(0, 0.001)? More importantly, are you really

Re: [R] how do i retain decimal values

2009-08-03 Thread Manisha Brahmachary
(11,0.1,0.0001),g=runif(11,0.0 0001,0.0001),h=runif(11,0.1,0.0001)) options(digits=10) manisha -Original Message- From: Patrick Connolly [mailto:p_conno...@slingshot.co.nz] Sent: Sunday, August 02, 2009 3:38 AM To: Manisha Brahmachary Cc: r-help@r-project.org

[R] how do i retain decimal values

2009-08-02 Thread Manisha Brahmachary
Hello, I am trying to do a spearman correlation. My data has tied values. To overcome this issue, I am adding some random noise (values) to my original data. However when I add the random noise to the data, the final matrix does not show the new values. I guess the reason being that the noise

[R] calculating median with a condition

2009-07-20 Thread Manisha Brahmachary
Hello, I am trying to calculate the median of numbers across each row for the data shown below , with the condition that if the number is negative, that it should be ignored and the median should be taken of only the positive numbers. For eg: data is in Column A,B,C. Column D and E

[R] Convert a lis to matrix

2009-06-07 Thread Manisha Brahmachary
Hello, This is an urgent request. I want to convert a list of 3 elements into a matrix and I am not sure how to do it. The list looks like this: List of 3 $ : num [1:15364, 1] 0.133 0.622 0.588 1.024 0.583 ... ..- attr(*, dimnames)=List of 2 .. ..$ : chr [1:15364] 6420681 3610072

[R] extract rows having negative values

2009-06-07 Thread Manisha Brahmachary
Hello, I have a matrix with 6 columns and 12 rows. I want to extract out those IDs (rownames) from my matrix which have a negative values. For each ID(row) if the negative value is even under 1 column it needs to be extracted out. I will be grateful for any correct suggestion. Thanks

Re: [R] Convert a lis to matrix

2009-06-07 Thread Manisha Brahmachary
Thank you, it worked. -Original Message- From: Bernardo Rangel Tura [mailto:t...@centroin.com.br] Sent: Sunday, June 07, 2009 6:14 AM To: Manisha Brahmachary Cc: r-help@r-project.org Subject: Re: [R] Convert a lis to matrix On Sun, 2009-06-07 at 00:14 -0400, Manisha Brahmachary wrote

Re: [R] extract rows having negative values

2009-06-07 Thread Manisha Brahmachary
Thank you Bill, your suggestion works just fine!!! -Original Message- From: bill.venab...@csiro.au [mailto:bill.venab...@csiro.au] Sent: Sunday, June 07, 2009 3:23 AM To: Manisha Brahmachary; r-help@r-project.org Subject: RE: extract rows having negative values rownames(X)[apply(X, 1

Re: [R] save workspace while running R on a cluster

2008-06-16 Thread Manisha Brahmachary
Thanks your suggestion works -:-) From: milton ruser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 2:42 PM To: Manisha Brahmachary Cc: r-help@r-project.org Subject: Re: [R] save workspace while running R on a cluster Hi Manisha, How about you

[R] save workspace while running R on a cluster

2008-06-12 Thread Manisha Brahmachary
Hello, I have a question about running R in a cluster environment. The shell script I am running looks like this: #!/bin/bash cd /nfs/apollo/2/c2b2/users/mb0001/Data /nfs/apollo/1/shares/software/core_facility/local/x86_64_rocks/R/current/bin/ R --save calculate.R script.out I have

Re: [R] convert characters into integers in a matrix

2008-06-10 Thread Manisha Brahmachary
Thanks, This works fine. -Original Message- From: Erik Iverson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 4:19 PM To: Manisha Brahmachary Cc: r-help@r-project.org Subject: Re: [R] convert characters into integers in a matrix Manisha - Will this work instead? if 'a' is your

[R] query on within class standard deviation

2008-03-04 Thread Manisha Brahmachary
Hi, I would appreciate any help on the following question: How can I calculate within class standard deviation for a gene in R/Bioconductor, given that I have two classes? Thanks Manisha [[alternative HTML version deleted]]

[R] problem with creation of eSet

2008-02-27 Thread Manisha Brahmachary
Hi, I am having troubles with creating an eSet and would appreciate any help on the following problem. I am trying to create an eSet using the following code pd - read.table(file=pdata.txt,header =TRUE,row.names=1); colnames(pd) - c(type,tumor,time,id); pdN - list(type =

[R] help with combining matrix and list into dataframe

2008-01-03 Thread Manisha Brahmachary
Problem# I am having a problem combining a matrix and elements of a list into one data frame. Data The matrix is ludwig.results and dim of matrix is 213,8. The

[R] need help with error message:Error in lm.fit(design, t(M)) : incompatible dimensions

2007-11-13 Thread Manisha Brahmachary
Hello, I am trying to run a code (see reference section) and when I run the line: fit-lmFit(xen1dataeset,design), I get the error message: Error in lm.fit(design, t(M)) : incompatible dimensions I will really appreciate if someone can help me understand this error message and

[R] scaling x-axis in hist function

2007-11-09 Thread Manisha Brahmachary
Hi, I have a query regarding usage of hist (histogram) function in R. I have a data where the range of the x -axis is from 0.0-1.0. When I use hist the ticks on the x-axis it gives me by default is at 0.0,0.2,0.4,0.6,0.8 and 1.0. If I want more ticks such that the x-axis has

Re: [R] scaling x-axis in hist function

2007-11-09 Thread Manisha Brahmachary
your code with my code written above? Thanks a lot! manisha _ From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED] Sent: Friday, November 09, 2007 2:51 PM To: Manisha Brahmachary Cc: [EMAIL PROTECTED] Subject: Re: [R] scaling x-axis in hist function Perhaps you can do: x