Skip to content

[source]

Numeric String Converter#

Convert all numeric strings to their equivalent integer and floating point types. Useful for when extracting from a source that only recognizes data as string types such as CSV.

Note

The string representations of the PHP constants NAN and INF are the string literals 'NAN' and 'INF' respectively.

Interfaces: Transformer, Reversible

Data Type Compatibility: Categorical

Parameters#

This transformer does not have any parameters.

Example#

use Rubix\ML\Transformers\NumericStringConverter;

$transformer = new NumericStringConverter();

Additional Methods#

This transformer does not have any additional methods.