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")

MSKCC-Epi-Bio/gnomeR documentation built on Oct. 17, 2024, 3:39 p.m.