It would be much easier to do if you can convert the format slightly first. In R it is very easy to create a sparse matrix from the indexes and values. If you stored the value of the sparse vector as a two column matrix in CSV or TSV format, then R could read that very easily and convert to a sparse matrix quickly.
Reading the actual Mahout format is likely to be relatively unpleasant. On Wed, Sep 10, 2014 at 11:07 AM, Yang <[email protected]> wrote: > we generated some output using mahout packages, > now we'd like to do more exploring on an interactive basis. > > R is much faster so i'd like to use R to do it. > I'd like to read a sparse Vector and find the original text representation > , probably utilzing the dictionary from mahout too > > > is it possible to do this? > > thanks > yang >
