update_Metabolite: Update a Metabolite object

View source: R/data.R

update_MetaboliteR Documentation

Update a Metabolite object

Description

Update a Metabolite object.

Usage

update_Metabolite(object, dataset = NULL, action = NULL)

Arguments

object

A Metabolite object

dataset

A vector or data.table used for a specific action mode.

action

Currently support:

  • "injection_order": '@sampleData' will be updated by the order of sampleID that provided in the injection order data

  • "keep_feature": feature ID list to keep

  • "remove_feature": feature ID list to remove

  • "keep_sample": sample ID list to keep

  • "remove_sample": sample ID list to remove

  • "add_sample_annotation": merge data with '@sampleData'

  • "change_featureID": change the name of featureID (provide the new column name in '@featureData' for dataset)

Value

A Metabolite object after updating.


XikunHan/metabolomicsR documentation built on Oct. 14, 2024, 3:18 p.m.