Contains the method to read data. More...
#include <RcppEigen.h>#include <algorithm>#include <iterator>#include <numeric>#include <cmath>#include <utility>#include <vector>#include <iostream>#include "traits_ko.hpp"#include "removing_nan.hpp"#include "parameters_wrapper.hpp"Go to the source code of this file.
Functions | |
| template<typename T> | |
| std::pair< KO_Traits::StoringMatrix, std::vector< int > > | reader_data (Rcpp::NumericMatrix X, REM_NAN MA_t) |
| Function that reads data from R containers, substitute actual NaNs, handle dummy NaNs, removing them but saving their position, and wraps it into C++ objects. | |
Contains the method to read data.
| std::pair< KO_Traits::StoringMatrix, std::vector< int > > reader_data | ( | Rcpp::NumericMatrix | X, |
| REM_NAN | MA_t ) |
Function that reads data from R containers, substitute actual NaNs, handle dummy NaNs, removing them but saving their position, and wraps it into C++ objects.
| X | Rcpp::NumericMatrix as passed in input to the R-interfaced function |
| MA_t | how to handle not-dummy NaNs (if substituting with pointwise fts mean or 0) |