[R] How to use "SparseM-conversions" to convert a dCgMatrix into a matrix.csr ?

2013-05-07 Thread Yi Yuan
Hi all, I want to transform a dCgMatrix from package Matrix into a matrix.csr from package SparseM, and I found out this link : http://stat.ethz.ch/R-manual/R-devel/library/Matrix/html/SparseM-conv.html But there's no informaion about usage/description/arguments, so how do I use this SparseM-co

[R] a huge sparse matrix to pass into svm

2013-05-06 Thread Yi Yuan
Hi all, I have a huge sparse matrix, it's 360K*210K. Right now I have all the nonzero elements and their indices, so I want to transform this information into a sparse matrix so that I could pass the sparse matrix into svm function. I was planning to use sparse_matrix<- as.matrix.csr(v,nrow=36

[R] R doesn't recognize utils functions, such as arrayIndex( )

2013-04-02 Thread Yi Yuan
Hi all, When I called arrayIndex(20:23, dim=c(4,3,3)), it says "Error: could not find function "arrayIndex"in R". So I called ls("package:utils") to see the functions inside: [1] "?" [2] "adist" [3] "alarm" [4] "apropos" [5] "aregexec" [6] "argsAnywhere" [7] "arrangeWindows" [8] "a

Re: [R] R doesn't recognize utils functions, such as arrayIndex( )

2013-04-02 Thread Yi Yuan
use of the quotation marks, so I thought the name must be just "utils". On Tue, Apr 2, 2013 at 9:16 AM, Sarah Goslee wrote: > Why do you think the utils package and the R.utils package are the same > thing? > > Sarah > > > On Tuesday, April 2, 2013, Yi Yuan wrote

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
atime >> c:/temp/BO.jpg 150536 FALSE 666 2013-01-14 08:35:32 2013-01-14 08:33:09 >> 2013-01-14 08:33:09 >>exe >> c:/temp/BO.jpg no >> >> I can readJPEG() the file with mode 666, but not all permission >> information is encoded in the mode.

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
) the file with mode 666, but not all permission > information is encoded in the mode. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > > -Original Message----- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Beh

[R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
Hi, r-help mailing list subscribers, I installed jpeg package and tried to use kim<-readJPEG("kim.jpeg") to read in a jpeg file, but R gave me an error: Error in readJPEG("kim.jpeg") : unable to open kim.jpeg I already put "kim.jpeg" in Rstudio's default working directory: "E:\home work\Rstudio

[R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
I installed jpeg package and tried to use kim<-readJPEG("kim.jpeg") to read in a jpeg file, but R gave me an error: Error in readJPEG("kim.jpeg") : unable to open kim.jpeg I already put "kim.jpeg" in Rstudio's default working directory: "E:\home work\Rstudio". So I don't think it's a problem cau