cardillo / joinery

Data frames for Java
https://joinery.sh
GNU General Public License v3.0
697 stars 167 forks source link

Handle NULL values and support reference categories in toModelMatrix. #50

Closed lejon closed 8 years ago

lejon commented 8 years ago

This patch improves the toModelMatrix method so it better handles when a dummy variable is NULL. It is now also possible to supply a template to toModelMatrix. This is useful if one conversion is done and one wants to do another (on another dataframe) and want the same encoding of common variables.