Renames a dataframe with UKB fields as column names with descriptive names.

bio_rename(data, field_finder)

Arguments

data

A dataframe with UKB fields as column names. See bio_phen.

field_finder

A dataframe including a column of UKB fields and a column of descriptive names. See bio_field.

Value

A dataframe with UKB field column names replaced with descriptive column names.

Details

Note: Before using bio_rename, if duplicate fields exist, they will have a basket ID suffix. Drop the duplicates you do not want, and rename the remaining fields by dropping the _<basket_id> suffix.

See also