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
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
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,
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
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
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
6 matches
Mail list logo