[R] ReadMM does not support array format

Manoj Kumar manojkumarsivaraj334 at gmail.com
Tue Sep 16 16:11:13 CEST 2014


I have a file "x.mtx" stored as a array format MatrixMarket file.

The header says "%%MatrixMarket matrix array real general"

However when I do readMM("x.mtx"), it raises an error saying Error in
scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  scan() expected 'an integer', got '-8.1977721447407614e-01'

which means that it expects the coordinate matrix format. Is this a bug? or
am I doing something wrong? since I expect the MatrixMarket format to
handle both formats of data.


Manoj Kumar,
Intern, Telecom ParisTech
Mech Undergrad

	[[alternative HTML version deleted]]

More information about the R-help mailing list