varpro one hot encodes features, so we need to get the "raw" original variable names. This loops through the variable names not in the original dataset, and cuts one character off the end until we find the variable name in the original data.
Source:R/varpro_feature_names.R
varpro_feature_name.Rd
varpro one hot encodes features, so we need to get the "raw" original variable names. This loops through the variable names not in the original dataset, and cuts one character off the end until we find the variable name in the original data.