Thanks Ben, Jeff and Roy,
Here is an example of my data
Disease <- NULL
Diseases <- NULL
ListMatByGene <- NULL
for(i in 1:3){
Disease[[i]] <-matrix(sample(-30:30,25+(5*i)),5+i)
rownames(Disease[[i]]) <- paste0("Sample",1:(5+i))
colnames(Disease[[i]]) <- paste0("Gene",1:5)
D <- paste0("Disease",i
I believe what Karim is after is often referred to as a “ragged array”. For
disk storage, such structures have been added to netcdf4 for things like
subsurface profiles with a different number of depths.
This blog might be of interest:
http://www.r-bloggers.com/efficient-ragged-arrays-in-r-and
I use plyr and am learning dplyr and magrittr, but those are just syntactic
sugar. What I have been having difficulty with in this thread is the idea that
it somehow makes sense to pad vectors with NA values... because I really don't
think it does. It seems more like a hammer looking for a nail
Hi,
On Jan 19, 2015, at 5:17 PM, Karim Mezhoud wrote:
> Thanks Ben.
> I need to learn more about apply. Have you a link or tutorial about apply. R
> documentation is very short.
>
> How can obtain:
> z <- list (Col1, Col2, Col3, Col4..)?
>
This may not be the most efficient way and there
Thanks Ben.
I need to learn more about apply. Have you a link or tutorial about apply.
R documentation is very short.
How can obtain:
z <- list (Col1, Col2, Col3, Col4..)?
Thanks
Ô__
c/ /'_;kmezhoud
(*) \(*) ⴽⴰⵔⵉⵎ ⵎⴻⵣⵀⵓⴷ
http://bioinformatics.tn/
On Mon, Jan 19, 2015 at 8:22 PM,
Hi again,
On Jan 19, 2015, at 1:53 PM, Karim Mezhoud wrote:
> Yes Many thanks.
> That is my request using lapply.
>
> do.call(cbind,col1)
>
> converts col1 to matrix but does not fill empty value with NA.
>
> Even for
>
> matrix(unlist(col1), ncol=5,byrow = FALSE)
>
>
> How can get Matrix
Yes Many thanks.
That is my request using lapply.
do.call(cbind,col1)
converts col1 to matrix but does not fill empty value with NA.
Even for
matrix(unlist(col1), ncol=5,byrow = FALSE)
How can get Matrix class of col1? And fill empty values with NA?
Thanks
Karim
Ô__
c/ /'_;kmezhoud
Hi,
On Jan 18, 2015, at 4:36 PM, Karim Mezhoud wrote:
> Dear All,
> I am trying to get correlation between Diseases (80) in columns and
> samples in rows (UNEQUAL) using gene expression (at less 1000,numeric). For
> this I can use CORREP package with cor.unbalanced function.
>
> But before to
Dear All,
I am trying to get correlation between Diseases (80) in columns and
samples in rows (UNEQUAL) using gene expression (at less 1000,numeric). For
this I can use CORREP package with cor.unbalanced function.
But before to get this final matrix I need to load and to store the
expression of 1
9 matches
Mail list logo