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

Description Usage Arguments Value Author(s) Examples

View source: R/build.subtable.R

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

1
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

Author(s)

Byoungnam Min <mbnmbn00@gmail.com>, Byeonghyuk Park, Kyoung Heon Kim and In-Geol Choi

Examples

1
2
3
4
5
data(example) # load example data

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

RbioRXN documentation built on May 29, 2017, 10:56 a.m.