38#include "../include/STK_ImportFromCsv.h"
54 : p_dataFrame_(import.p_dataFrame_)
55 , typeImport_(import.typeImport_)
56 , import_(import.import_)
136 msg_error_ +=
_T(
"Error in ImportCsv::runOnlyNumeric()\n");
#define _T(x)
Let x unmodified.
This file include all the other header files of the project Sdk.
DataFrame is a List of Variable with the same number of rows.
void pushBackVariable(IVariable *const &V)
Append a DataFrame back.
Sdk class for all library Exceptions.
String msg_error_
String with the last error message.
String const & error() const
get the last error message.
import data from a Csv File in a DataFrame.
Import::TypeImport typeImport_
the type of import we want to perform.
DataFrame * p_dataFrame_
A ptr on the resulting DataFrame.
ImportFromCsv(ReadWriteCsv const &import, Import::TypeImport type=Import::numeric_)
Constructor.
bool asOnlyNumeric()
launch the conversion from the ReadWriteCsv to a DataFrame with only the successful numeric conversio...
bool asString()
launch the conversion from the ReadWriteCsv to a DataFrame as String.
ReadWriteCsv const & import_
a constant reference on the the original ReadWriteCsv.
bool asNumeric()
launch the conversion from the ReadWriteCsv to a DataFrame with a numeric conversion.
virtual ~ImportFromCsv()
destructor.
bool run()
launch the importation of the ReadWriteCsv to the DataFrame.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
TypeImport
define the type of import we want to perform.
@ numeric_
try to convert the columns in numeric values and let the others as string
@ only_numeric_
conserve only the columns with numeric values
@ string_
copy the columns
The namespace STK is the main domain space of the Statistical ToolKit project.
class TReadWriteCsv< String > ReadWriteCsv