I'm trying to read data a program produces in matrixmarket array format
into R and its giving me fits. I've tried read.MM (below) and readMM (from
the Matrix package) but neither works. One of them says array format isn't
supported, the other reports something indecipherable about Fortran.

Here's the file contents. Can't get much simpler than that!

%%MatrixMarket matrix array real general
> %This file contains LIBFM global mean which is required for computing
> predictions.
> 1 1
> 1.786238830716e-02


Can someone please help? Seems such a simple problem.


> > library(spam)
> Spam version 0.29-2 (2012-08-17) is loaded.
> Type 'help( Spam)' or 'demo( spam)' for a short introduction
> and overview of this package.
> Help for individual functions is also obtained by adding the
> suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
> Attaching package: ‘spam’
> The following object(s) are masked from ‘package:base’:
>     backsolve, forwardsolve
> > x=read.MM("/Users/brad/Dropbox/graphchi/2008.csv_global_mean.mm")
> Error in read.MM("/Users/brad/Dropbox/graphchi/2008.csv_global_mean.mm")
> :
>   invalid mode (list) to pass to Fortran (arg 8)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to