Re: [R] filtering a dataframe with a vector of rownames

2011-01-14 Thread ANJAN PURKAYASTHA
. -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge ma 02138 phone-703.740.6939 === [[alternative HTML version deleted

[R] Plotting colour-coded points

2011-01-05 Thread ANJAN PURKAYASTHA
to colour these points according to the data in column b. column b data may be colour coded into the following bins: 0-9; 10-19; 20-29. Any idea on how to accomplish this? TIA, Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology

[R] subset question

2010-12-29 Thread ANJAN PURKAYASTHA
). So I do this: subset(d, gene %in% c(i1, i2, i3)). This does not give me the required data. Any ideas where I am going wrong? TIA, Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge

Re: [R] subset question

2010-12-29 Thread ANJAN PURKAYASTHA
nope, that did not work. thanks though. Anjan On Wed, Dec 29, 2010 at 5:02 PM, Jonathan Flowers jonathanmflow...@gmail.com wrote: Try subd - d[, gene == c(i1,i2,i3)] On Wed, Dec 29, 2010 at 4:55 PM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: Hi, I'm having a problem

[R] Error message when creating a dataframe

2010-11-01 Thread ANJAN PURKAYASTHA
-- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge ma 02138 phone-703.740.6939 === [[alternative HTML version deleted]] __ R-help@r-project.org

[R] One-class SVM

2010-10-29 Thread ANJAN PURKAYASTHA
Does any R package support one-class SVM? I'm trying to develop an application to detect anomalies in genome sequencing. Thanks in advance. Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street

[R] Subsetting a dataframe

2010-10-24 Thread ANJAN PURKAYASTHA
that have only P's in them? Thanks in advance. Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge ma 02138 phone-703.740.6939

Re: [R] Subsetting a dataframe

2010-10-24 Thread ANJAN PURKAYASTHA
111111 1 HTH, Jorge On Sun, Oct 24, 2010 at 1:32 PM, ANJAN PURKAYASTHA wrote: Hi, I have a dataframe with 43 columns and a 1000 rows. Each entry in the dataframe can be either P or A. here is a small chunk: c1c2 ...c43 r100 P

[R] How do I tell whether two vectors are identical?

2010-10-12 Thread ANJAN PURKAYASTHA
Hi, I have two vectors, each of length 45000. How do I compare the vectors to ascertain if they are identical. Secondly if they are NOT identical, how do I determine the indices of positions at which the vectors differ? Thanks, Anjan -- === anjan purkayastha, phd

Re: [R] How do I tell whether two vectors are identical?

2010-10-12 Thread ANJAN PURKAYASTHA
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- === anjan purkayastha, phd. research associate fas center for systems biology

Re: [R] problem with colors

2010-10-09 Thread ANJAN PURKAYASTHA
]) On Thu, Oct 7, 2010 at 2:22 PM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: Hi, I have a data set of 47 columns. I would like to create a boxplot for each column, each boxplot of a different colour. So I created a vector col1. This vector has a subset of the colors returned

[R] problem with colors

2010-10-07 Thread ANJAN PURKAYASTHA
-- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge ma 02138 phone-703.740.6939 === [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Plotting x-axis labels perpendicular to the axis

2010-10-05 Thread ANJAN PURKAYASTHA
to be printed perpendicular to the x-axis? Thanks in advance. Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52 oxford street cambridge ma 02138 phone-703.740.6939

[R] subsetting

2010-05-30 Thread ANJAN PURKAYASTHA
- subset(r, (r$time == 0h r$strain == ROC), select= c(time, strain, gene, deltact)) returns an empty data-frame. Is it not possible to subset based on two criteria? TIA Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard

[R] modifying only certain rows in a data-frame

2010-05-29 Thread ANJAN PURKAYASTHA
$time == 0h I would like to convert the present value of r$deltact to 0. Any pointers to a simple method to accomplish would be greatly appreciated. TIA, Anjan -- === anjan purkayastha, phd. research associate fas center for systems biology, harvard university 52

[R] plotting the following data

2010-05-21 Thread ANJAN PURKAYASTHA
Hi, I need to plot $time on the x-axis and $f on the y-axis for the following data: timef 0h0.00 0.5h0.54 1h1.15 2h2.33 4h1.57 6h2.19 18h1.45 24h1.79 I want the order of the data-points to be retained and the x-coordinates of each of the 8 data-points to be

Re: [R] plotting the following data

2010-05-21 Thread ANJAN PURKAYASTHA
(textConnection(timef + 0h0.00 + 0.5h0.54 + 1h1.15 + 2h2.33 + 4h1.57 + 6h2.19 + 18h1.45 + 24h1.79), header=TRUE, as.is=TRUE) plot(x$f, xaxt='n') axis(1, at=1:8, labels=x$time) On Fri, May 21, 2010 at 12:15 PM, ANJAN PURKAYASTHA anjan.purkayas

[R] row-wise means

2009-11-18 Thread ANJAN PURKAYASTHA
of the numbers stored in col2 and col3. How can this be done in R? TIA, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939

Re: [R] Filtering on a dataframe- newbie question

2009-10-19 Thread ANJAN PURKAYASTHA
Thank you all who replied to my post. That cleared things up very well Anjan On Sun, Oct 18, 2009 at 11:10 PM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: Hi, newbie question. I have a data-frame with 3 named columns: Name, Obs1, Obs2. The Name column members are made

[R] Filtering on a dataframe- newbie question

2009-10-18 Thread ANJAN PURKAYASTHA
on how to do this? I'm sure I'm missing a simple concept here. Thanks, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939

[R] Calculating the average after adding 3 matrices

2009-10-03 Thread ANJAN PURKAYASTHA
-- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939 [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Book on R programming

2009-08-31 Thread ANJAN PURKAYASTHA
Most books on R I come across describe running statistical procedures in R. Any suggestions on a good book that teaches *programming* in R? Thanks, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge

Re: [R] Book on R programming

2009-08-31 Thread ANJAN PURKAYASTHA
To All, Your prompt and helpful replies are most appreciated. I'll be sure to check out your suggestions. Cheers, Anjan On Mon, Aug 31, 2009 at 8:24 AM, Ottorino-Luca Pantani ottorino-luca.pant...@unifi.it wrote: ANJAN PURKAYASTHA ha scritto: Most books on R I come across describe running

[R] Plotting question

2009-07-18 Thread ANJAN PURKAYASTHA
318 25 MJ-8000-185 80 92 26 MJ-8000-186 80161 27 MJ-8000-188 60158 28 MJ-8000-191 60103 29 MJ-8000-192 40468 30 MJ-8000-193 40432 -- = anjan purkayastha, phd bioinformatics analyst whitehead

[R] drawing a plot with SEM

2009-04-22 Thread ANJAN PURKAYASTHA
? TIA, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939 [[alternative HTML version deleted

[R] Uninstall question

2009-02-17 Thread ANJAN PURKAYASTHA
I need to uninstall R 2.7.1 from my Mac. What is the best way to uninstall it? Simply delete the R icon in the Applications folder? Or is it more involved? TIA, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine

[R] question on statistical test

2009-01-31 Thread ANJAN PURKAYASTHA
hi, this is more of a statistical methodology question than an R question. however, since there are quite a few expert statisticians in this forum i think i can expect to get some useful feedback. here is my problem: i am studying a set of genes. for each gene i have a set of probes (there are 2-5

[R] quantile question

2009-01-22 Thread ANJAN PURKAYASTHA
, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939 [[alternative HTML version deleted

Re: [R] quantile question

2009-01-22 Thread ANJAN PURKAYASTHA
Thanks all for your prompt and helpful replies! Anjan On Thu, Jan 22, 2009 at 11:52 AM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: Hi, A simple quantile question: I need to calculate the 95% and 5% quantiles (aka percentiles) for the following data: 67.12 64.51 62.06 55.45

[R] Perl-R bridge

2009-01-18 Thread ANJAN PURKAYASTHA
on alternate solutions will be appreciated. Thanks in advance, Anjan -- = anjan purkayastha, phd bioinformatics analyst whitehead institute for biomedical research nine cambridge center cambridge, ma 02142 purkayas [at] wi [dot] mit [dot] edu 703.740.6939

[R] Statistics forums

2008-11-15 Thread ANJAN PURKAYASTHA
Hi, Given that the R forum is mostly a site to discuss issues related to the language, are there any forums that discuss statistical issues? I am specifically interested in the statistical issues in experimental design. TIA, Anjan -- = anjan purkayastha, phd

[R] package question

2008-10-06 Thread ANJAN PURKAYASTHA
hi, am new to R. what command do i use to check of certain packages have been loaded? Also, it seems that most packages come with vignette- is this a document that describes the usage of the package? thanks for your help, anjan -- = anjan purkayastha, phd

[R] printing all rows

2008-09-09 Thread ANJAN PURKAYASTHA
Hi, my data table has 38939 rows. R prints the first 1 columns and then prints an error message:[ reached getOption(max.print) -- omitted 27821 rows ]]. is it possible to set the maxprint parameter so that R prints all the rows? tia, anjan -- = anjan purkayastha