Add Feature Names to Data
add_feature_names.Rd
This function assigns feature names to the rows of a dataframe based on a specified column from another dataframe. If no column is specified, it assigns sequential numbers as feature names.
Details
The function performs the following operations: - Extracts feature names from the specified column in `data`, ignoring `NA` values. - Ensures the feature names are unique and match the number of rows in `clean_data`. - Assigns the feature names to the rows of `clean_data`. - If `feature_name_column` is `NA`, assigns sequential numbers (1, 2, 3, etc.) as feature names and issues a message.