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

.jsonLR Documentation

Return data as a list from a JSON list

Description

Return data as a list from a JSON list

Usage

.jsonL(
  data,
  acc,
  default = as.character(NA),
  unList = TRUE,
  returnAllDefault = TRUE
)

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

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 Feb. 4, 2023, 5:12 p.m.