dot-jsonV: Return data as a vector from a JSON list

.jsonVR Documentation

Return data as a vector from a JSON list

Description

Return data as a vector from a JSON list

Usage

.jsonV(data, acc, default = NA, returnAllDefault = TRUE)

Arguments

data

json list

acc

accession name

default

default return value

returnAllDefault

whether to return the vector if all values are the default value (or NULL instead)

Value

vector

Note

Internal function only for convenience

Examples

testData = list(list(n="CDKN1B"),
                list(n="ROCK1", r="BLA"),
                list(n="SHC1", r="BLUBB"),
                list(n="IRS1"))
RCX:::.jsonV(testData, "r")

frankkramer-lab/RCX documentation built on Feb. 4, 2023, 5:12 p.m.