bio_rename: Updates column names

bio_renameR Documentation

Updates column names

Description

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

Usage

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.

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.

Value

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

See Also

bio_phen, bio_field


kenhanscombe/ukbkings documentation built on April 28, 2023, 12:47 p.m.