Learn R Programming

MiMIR (version 1.5)

find_BBMRI_names: find_BBMRI_names

Description

Function to translate Nightingale metabolomics alternative metabolite names to the ones used in BBMRI-nl

Usage

find_BBMRI_names(names)

Value

data.frame with the uploaded metabolites names on the first column and the BBMRI names on the second column.

Arguments

names

vector of strings with the metabolic features names to be translated

References

This is a function originally created for the package ggforestplot and modified ad hoc for our package (https://nightingalehealth.github.io/ggforestplot/articles/index.html).

Examples

Run this code
library(MiMIR)
library(purrr)

#load the Nightignale metabolomics dataset
metabolic_measures <- synthetic_metabolic_dataset
#Find the metabolites names used in BBMRI-nl
nam<-find_BBMRI_names(colnames(metabolic_measures)) 

Run the code above in your browser using DataLab