136 msg_error_ +=
_T(
"Error in ImportCsv::runOnlyNumeric()\n");
In this file we define the class ImportFromCsv.
#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.
Base class for all Exceptions thrown by the STK++ library.
String msg_error_
String with the last error message.
String const & error() const
get the last error message.
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.
bool import(Array1D< int > const &indexes)
launch the importation of the ReadWriteCsv to the DataFrame.
virtual ~ImportFromCsv()
destructor.
bool run()
launch the importation of the ReadWriteCsv to the DataFrame.
Variable is an implementation of the Base class IVariable using The Array1D class for storing the dat...
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