SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/man/externalFormats.Rd
ViewVC logotype

Diff of /pkg/Matrix/man/externalFormats.Rd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2618, Sat Sep 11 20:49:41 2010 UTC revision 2675, Sat Jun 11 15:11:24 2011 UTC
# Line 40  Line 40 
40    The Harwell-Boeing format is older and less flexible than the    The Harwell-Boeing format is older and less flexible than the
41    MatrixMarket format.  The function \code{writeHB} was deprecated and    MatrixMarket format.  The function \code{writeHB} was deprecated and
42    has now been removed.  Please use \code{writeMM} instead.    has now been removed.  Please use \code{writeMM} instead.
43    
44      A very simple way to export small sparse matrices \code{S}, is to use
45      \code{summary(S)} which returns a \code{\link{data.frame}} with
46      columns \code{i}, \code{j}, and possibly \code{x}, see \code{summary} in
47      \code{\link{sparseMatrix-class}}, and an example below.
48  }  }
49  \references{  \references{
50    \url{http://math.nist.gov/MatrixMarket}    \url{http://math.nist.gov/MatrixMarket}
# Line 67  Line 72 
72  }  }
73  data(KNex)  data(KNex)
74  writeMM(KNex$mm, "mmMM.mtx")  writeMM(KNex$mm, "mmMM.mtx")
75    
76    ## very simple export - in triplet format - to text file:
77    s.CA <- summary(CAex)
78    message("writing to ", outf <- tempfile())
79    write.table(s.CA, file = outf, row.names=FALSE)
80  }  }
81  \keyword{IO}  \keyword{IO}
82  \keyword{array}  \keyword{array}

Legend:
Removed from v.2618  
changed lines
  Added in v.2675

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge