GET BINARY MATRIX REPRESENTATION OF THE DATA-FEATURE RELAITONSHIP
Given some features in the form "feature1=x1", "feature2=x2"..., this function will generate a matrix representation of which data are captured by which features.
a data.frame representing the observations.
a character vector representing the features in the form: "feature1=x1", "feature2=x2"...
a binary matrix of size #observations-by-#featurenames
Hongyu Yang, Morris Chen, Cynthia Rudin, Margo Seltzer
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.