Logo Search packages:      
Sourcecode: r-cran-genabel version File versions  Download package

void FilteredMatrix::saveVariablesAs ( string  newFilename,
unsigned long  nvars,
unsigned long *  varindexes 
) [virtual]

Saves selected variables to another file

Implements AbstractMatrix.

Definition at line 122 of file FilteredMatrix.cpp.

    vector<unsigned long> recodedColIndexes;
    vector<unsigned long> recodedRowIndexes;

    unsigned long *obsIndexes = new unsigned long[this->getNumObservations()];

    unsigned long i;

    filterIdxList(obsIndexes, this->getNumObservations(), recodedColIndexes, filteredToRealColIdx);
    filterIdxList(varIndexes, nvars, recodedRowIndexes, filteredToRealRowIdx);
    delete obsIndexes;

Generated by  Doxygen 1.6.0   Back to index