dataFrame.column.num — toInt()
Description
The toInt() method of the num object returns the values of the selected column converted to integers.
Signature
dataFrame.column(columnName).num.toInt()Argument
columnName(string)- The name of the column containing the values to convert.
Returns
mask( number[] )- An array containing the converted values.
Example
// convert values from a column of the dataFrame to integers
var mask = dataFrame.column('values').num.toInt();
// add values to the dataFrame
dataFrame.column('newValues').set(mask);