Skip to content
Prev 309985 / 398506 Next

no method for coercing this S4 class to a vector

The matrix z is save()d in <http://sds.podval.org/data/z>.
It is a product of a sparse matrix and a non-sparse matrix.
I need to scale it and write to a file in the sparse format for libsvm.

platform       x86_64-pc-linux-gnu          
arch           x86_64                       
os             linux-gnu                    
system         x86_64, linux-gnu            
status                                      
major          2                            
minor          15.2                         
year           2012                         
month          10                           
day            26                           
svn rev        61015                        
language       R                            
version.string R version 2.15.2 (2012-10-26)

Package:            SparseM
Version:            0.96
Author:             Roger Koenker <rkoenker at uiuc.edu> and Pin Ng
                    <Pin.Ng at NAU.EDU>
Maintainer:         Roger Koenker <rkoenker at uiuc.edu>
Depends:            R (>= 2.4.1), methods, stats, utils
Description:        Basic linear algebra for sparse matrices
License:            GPL (>= 2)
Title:              Sparse Linear Algebra
URL:                http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html
Packaged:           2012-03-18 19:39:05 UTC; root
Repository:         CRAN
Date/Publication:   2012-03-18 20:55:08
Built:              R 2.15.2; x86_64-pc-linux-gnu; 2012-11-05 17:46:36
                    UTC; unix