Displaying 3 results from an estimated 3 matches for "unideb".
Did you mean:
uniden
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers,
I have a matrix where the first column is known. The second column is
the result of multiplying this first column with a constant "const". The
third column is the result of multiplying the second column with
"const".....
So far, I did it like this (as a simplified example):
nr.of.columns <- 4
myconstant <- 27.5
mymatrix <- matrix(numeric(0), nrow=5,
2005 Jan 28
2
read.matrix.csr bug (e1071)?
Hello,
I would like to read and write sparse matrices using the
functions write.matrix.csr() and read.matrix.csr()
of the package e1071. Writing is OK but reading back the
matrix fails:
x <- rnorm(100)
m <- matrix(x, 10)
m[m < 0.5] <- 0
m.csr <- as.matrix.csr(m)
write.matrix.csr(m, "sparse.dat")
read.matrix("sparse.dat")
Error in initialize(value, ...)
2008 Oct 23
1
write.matrix.csr(e1071) bug
Hello,
The write.matrix.csr() function of the e1071 package contains a bug.
Try the following:
library(e1071)
m <- 1 - diag(10)
sm <- as.matrix.csr(m)
write.matrix.csr(sm)
The resulting file (out.dat) contains only the two lines below:
2:1 3:1 4:1 5:1 6:1 7:1 8:1 9:1 10:1
1:1 3:1 4:1 5:1 6:1 7:1 8:1 9:1 10:1
This is obviously wrong as the matrix m has 90 non-zero entries.
The