dot-jsonL: Return data as a list from a JSON list

Description Usage Arguments Value Note Examples

Description

Return data as a list from a JSON list

Usage

1
.jsonL(data, acc, default = NA, unList = T, returnAllDefault = T)

Arguments

data

json list

acc

accession name

default

default return value

unList

logical; whether to unlist the list elements (e.g. for a list of lists return a list of vectors)

returnAllDefault

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

Value

list

Note

Internal function only for convenience

Examples

1
2
3
4
5
testData = list(list(n="CDKN1B"),
                list(n="ROCK1", r="BLA"),
                list(n="SHC1", r="BLUBB"),
                list(n="IRS1"))
RCX:::.jsonL(testData, "r")

frankkramer-lab/RCX documentation built on Oct. 26, 2021, 1:33 a.m.