Displaying 5 results from an estimated 5 matches for "5x10".
Did you mean:
0x10
2008 Feb 07
2
matrix loop
Dear list,
I'm trying to make a loop of a (5x10) matrix and below are my codes. Could anybody help me figure out why my loop is not working. Thanks in advance!!
m<-1:5
n<-1:10
for(i in 1:length(m))
{ for(j in 1:length(n))
{
y[i,j]=sum(i,j)
y<-as.matrix(y[i,j])
}
}
cheers,
Anisah
-------------------------...
2008 Nov 21
2
Calculating correlation for a big matrix
Dear All,
I have a matrix of size 10000 x 50. I would like to calculate all possible pair-wise correlation coefficient (5x10^7 combinations) using cor(). How can I efficiently calcualte and save the result in a matrix?
Thanks in advance.
Kind regards,
Ezhil
2012 Dec 13
1
How do I make a loop to extract a column from multiple lists and then bind them together to make a new matrix?
....4011299 0.4834437 0.6454545
Now here where I get stuckā¦ how do I cbind these vectors without typing it
out expliciity? ie. mean.MDD <- cbind(m1,m2,m3,m4,m5,m6,m7,m8,m9,10)
Everything I have tried keeps overwriting the data instead of building a
matrix. Basically I, start with a matrix (5x10) of zeros. Then I wind up
with a few values in the beginning, but the rest is still zeros.
Example of terrible code:
> fo <- matrix(0,5,10)
> colnames(fo) <- paste('f', 1:10, sep = "")
> fo
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10
[1,] 0 0 0 0 0 0 0 0 0...
2008 Jan 07
1
Avoiding FOR loops
useR's,
I would like to know if there is a way to avoid using FOR loops to perform
the below calculation.
Consider the following data:
> x
[,1] [,2] [,3]
[1,] 4 11 1
[2,] 1 9 2
[3,] 7 3 3
[4,] 3 6 4
[5,] 6 8 5
> xk
Var1 Var2 Var3
1 -0.25 1.75 0.5
2 0.75 1.75 0.5
3 1.75 1.75 0.5
4 2.75 1.75 0.5
5 3.75 1.75
2010 Jan 29
0
[BioC] Suppress output from getGEO
...currently, it prints dots (when it does) in
5 10-packs per line, line after line. instead, it could be repeatedly
printing them on the same line, to give it a more progress bar-like look.
the function putdots (src/modules/internet/internet.c:218) is responsible
for printing the dots. after each 5x10 bunch of dots, it proceeds to the
next line:
if((i+1) % 50 == 0) REprintf("\n");
but it could instead just swipe the dots and start in the same line again:
if((i+1) % 50 == 0) REprintf("\r%55s\r", "");
it's ad hoc, of course, and requires some other cha...