[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

[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-

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

2013-04-02 Thread Yi Yuan
marks, so I thought the name must be just utils. On Tue, Apr 2, 2013 at 9:16 AM, Sarah Goslee sarah.gos...@gmail.com 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: Hi all, When I called arrayIndex

[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 arrayIndexin 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] as.person I'm only

[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 caused by

[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. So I

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jeff Newmiller Sent: Monday, January 14, 2013 8:25 AM To: Yi Yuan; r-help@r-project.org Subject: Re: [R] readJPEG function cannot open jpeg files Being unable to open a file

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Yi Yuan
Hi, guys, my problem is solved. I used file.info(list.files(getwd(),full.names=TRUE)) and found out that the said file is listed as kim.jpg instead of kim.jpeg. So kim-readJPEG(kim.jpg) worked. Thanks for your help and sorry for my newbie question. On Mon, Jan 14, 2013 at 11:59 AM, Yi Yuan