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.
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.