Re: [R] merge counts from table()

2012-08-14 Thread Francois Pepin
Thanks for all the replies. The merge solution is what I was groping toward but the factor solution is much cleaner since I do know in advance what the possible categories are. François On Aug 14, 2012, at 2:39 , PIKAL Petr wrote: > Hi > > If your x and y are factors it seems to be easy, jus

[R] merge counts from table()

2012-08-13 Thread Francois Pepin
Hi everyone, Is there an easy way to combine the counts from table()? Let's say that I have: x<-1:4 y<-2:5 I want to replicate: table(c(x,y)) using only table(x) and table(y) as input. The reason is that it's cumbersome to carry all the values around when all I care about are the counts. The

Re: [R] Reading parameters from dataframe and loading as objects

2011-11-04 Thread Francois Pepin
Hi, assign is your friend here: apply(data,1,function(x)assign(x[1],x[2],envir = .GlobalEnv)) As a note, you probably don't want to use data as a variable because it overwrites the data function, leading to unwanted side-effects if you ever use it. Cheers, François Pepin Scientist Sequenta,

Re: [R] Hi

2011-09-30 Thread Francois Pepin
3.46E-103.78E-104.33E-10 > hsa-miR-200c--PCYOX1 0.7216983.48E-103.78E-103.87E-10 > hsa-miR-200c--WDR68 0.72068 3.78E-103.78E-103.78E-10 > > So I am confused about that. > > Best, > Jiang > On Fri, Sep 30, 2011 at

Re: [R] ps or pdf

2008-03-31 Thread Francois Pepin
Prof Brian Ripley wrote: > Please see the footer of this message. Sorry, here is an example. For some reason, I cannot reproduce it without using actual gene names. set.seed(1) ##The row names were originally obtained using the hgug4112a library ##from bioconductor. I set it manually for peop

[R] ps or pdf

2008-03-31 Thread Francois Pepin
Hi everyone, I have been making a fair amount of figures in R recently that I've been touching up with Illustrator and I've found a difference between pdf and ps files and I was wondering if someone could enlighten me about them. While the figures look the same, the ps version tends to have trunc