RbioRXN (version 1.3.1)

build.subtable: Build sub-table for the entries with multiple values

Description

When you download biochemical reaction data with functions such as get.kegg.all(), get.metacyc.all(), get.rhea.all(), etc, some entries have multiple values such as "synonyms". This function allows to build sub-table that separates multiple values in different rows.

Usage

build.subtable(table, column1, column2, separator = "///")

Arguments

table
data.frame object where multiple entries exist
column1
It is usually first column name for unique ID
column2
The column name where the column contains multiple values (e.g., synonyms)
separator
Separator symbol (default is "///")

Value

  • data.frame() object

Examples

Run this code
data(example) # load example data

chebi = example$chebi # sample ChEBI
chebi.sub = build.subtable(table = chebi, column1 = "chebi", column2 = "synonyms", separator="///")
head(chebi.sub)

Run the code above in your browser using DataLab