webTable: Get R matrix from weblink

Description Usage Arguments Details Value Author(s) Examples

Description

Get a R matrix object if the weblink returned as a matrix.

Usage

1
webTable(url, ncol, enforceURL = FALSE)

Arguments

url

The weblink.

ncol

The column number of the matrix.

enforceURL

whether to enfoce get get url until the results returned. The default value is "FALSE".

Details

If the web return a matrix, use this function to extract it as a R matrix object. An empty element is used to represent a "NA" in KEGG. So the empty web element is set to "NA" according the "ncol" parameter.

Value

A R matrix

Author(s)

Yulong Niu niuylscu@gmail.com

Examples

1
2
pathUrl <- 'http://rest.kegg.jp/list/pathway'
keggPath <- webTable(pathUrl, ncol = 2)

YulongNiu/KEGGAPI documentation built on May 10, 2019, 1:12 a.m.