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* data
← Pointer to the source array.int numRows
← Number of rows/samples in the source array.char* name
← Name of the column/feature.
Returns
DataFrame*
→ Pointer to the newly created DataFrame.
note
Caller is responsible for freeing allocated memory.
SEE ALSO
DF_free()
to free the DataFrame.