This function updates the variable_info and variable_info_note slots of a mass_dataset object. It ensures that the columns in variable_info are consistent with the names in variable_info_note.

update_variable_info(object)

Arguments

object

A mass_dataset object whose variable_info and variable_info_note slots you want to update.

Value

A mass_dataset object with updated variable_info and variable_info_note slots.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
# Assuming `md` is a mass_dataset object
updated_md <- update_variable_info(md)
}