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

void FilteredMatrix::saveObservationsAs ( string  newFilename,
unsigned long  nobss,
unsigned long *  obsindexes 
) [virtual]

Saves selected observations to another file

Implements AbstractMatrix.

Definition at line 138 of file FilteredMatrix.cpp.

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

    unsigned long *varIndexes = new unsigned long[this->getNumVariables()];

    unsigned long i;
    for(i=0;i<this->getNumObservations();i++){
        varIndexes[i]=i;
    }

    filterIdxList(obsIndexes, nobss, recodedColIndexes, filteredToRealColIdx);
    filterIdxList(varIndexes, getNumVariables(), recodedRowIndexes, filteredToRealRowIdx);
    delete obsIndexes;
}

Generated by  Doxygen 1.6.0   Back to index