You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When prepping a recipe that includes a step_pca step, if some of the columns in the dataset (not used by the PCA) have names that end with the "...[:digit:]" pattern (which is what is usually obtained for example when loading the dataset using .name_repair = "unique" ), their names will be changed after the execution of the prep function.
I have noticed that this only happens if the effected columns names' number is not "aligned" with their position in the dataframe (i.e. the column is named foo...6 but is in position 1 in the resulting dataframe, see example).
Is there a way to change this behaviour and force the recipe to keep the column names untouched?
The problem
When prepping a recipe that includes a
step_pca
step, if some of the columns in the dataset (not used by the PCA) have names that end with the "...[:digit:]" pattern (which is what is usually obtained for example when loading the dataset using.name_repair = "unique"
), their names will be changed after the execution of theprep
function.I have noticed that this only happens if the effected columns names' number is not "aligned" with their position in the dataframe (i.e. the column is named foo...6 but is in position 1 in the resulting dataframe, see example).
Is there a way to change this behaviour and force the recipe to keep the column names untouched?
Reproducible example
Created on 2024-07-09 with reprex v2.1.1
Session info
The text was updated successfully, but these errors were encountered: