sing ifelse ?
Thanks.
From: ruipbarra...@sapo.pt
Sent: Monday, March 21, 2016 11:50 AM
To: Stephen HK WONG
Cc: r-help@r-project.org
Subject: Re: [R] how to use vectorization instead of for loop
Hello,
I've renamed your dataframe to 'dat'. Since ?ifelse is vectorized, try
dat[, 4
Dear All,
I have a dataframe like below but with many thousands rows,
structure(list(gene_id = structure(1:6, .Label = c("0610005C13Rik",
"0610007P14Rik", "0610009B22Rik", "0610009L18Rik", "0610009O20Rik",
"0610010B08Rik,OTTMUSG0016609"), class = "factor"), log2.fold_change. =
c(0.0114463,
rough all objects and perform the
similar action ?
One way I can think of is like this:
for (i in 1:50){
get(ls()[i])[,3]+get(ls()[i][,4]
}
But I don't know how to save the addition result back to 5th column of each
dataframe.
Many Thanks!
Steph
information on
documentation.
Stephen HK Wong
Stanford, California 94305-5324
- Original Message -
From: Henrik Bengtsson
To: Stephen HK Wong
Cc: r-help@r-project.org
Sent: Thu, 18 Sep 2014 18:33:15 -0700 (PDT)
Subject: Re: [R] read.table() 1Gb text dataframe
As a start, make sure
using colbycol package, but it is not
not available. Many thanks!!
Stephen HK Wong
Stanford, California 94305-5324
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-projec
275 -
chr13005558 3005593 -
chr13005890 3005925 +
chr13005929 3005964 +
chr13005913 3005948 -
chr13005913 3005948 -
Stephen HK Wong
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read t
_a_at", "1552902_a_at", "1552903_at"),
Gene.Symbol = c("CORO6", "CDH23 /// LOC100653137", "IRF6",
"GRHL1", "KCNH8", "CADM2", "TSNARE1", "KCNG3", "FOXP2", "B4GALNT2&quo
7 matches
Mail list logo