Skip to main content

DF_fromArray

DataFrame *DF_fromArray(double *data, int numRows, char *name);

Creates a DataFrame with one feature from the given array

note

Added in version 0.0.0

Parameters

  • double* dataPointer to the source array.
  • int numRowsNumber of rows/samples in the source array.
  • char* nameName of the column/feature.

Returns

  • DataFrame*Pointer to the newly created DataFrame.
note

Caller is responsible for freeing allocated memory.

SEE ALSO