rename_columns: Rename columns from API results to work with gnomeR functions

View source: R/utils-exported-helpers.R

rename_columnsR Documentation

Rename columns from API results to work with gnomeR functions

Description

Will return a named vector of internal column names as values and original data set names as names as an attribute (attr(x, "names_dict"))

Usage

rename_columns(df_to_check)

Arguments

df_to_check

A data frame to check and recode names as needed

Value

a renamed data frame

Examples

rename_columns(df_to_check = gnomeR::mutations)
x <- rename_columns(df_to_check = gnomeR::sv)
attr(x, "names_dict")

AxelitoMartin/gnomeR documentation built on Oct. 18, 2024, 11:39 a.m.