Discretize two numeric columns of a data frame into a matrix.
discretize(.data, dims = c(600, 600), x = "x", y = "y")
.data | Data frame |
---|---|
dims | Dimensions of matrix |
x | Name of x column in the data frame |
y | Name of y column in the data frame |
A matrix with dimensions dims