Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用rjson并这样做JSON <- lapply(data$toParse, fromJSON)
rjson
JSON <- lapply(data$toParse, fromJSON)
我toParse有 600k 行简单/短 JSON。
toParse
但是,它很慢,可能是因为fromJSON没有矢量化操作,所以我必须使用lapply.
fromJSON
lapply
我想知道是否有更好的方法来解析 JSON 列表?
将文本粘贴到数组中并解析rjson::fromJSON(sprintf("[%s]", paste(data$toParse, collapse=",")))怎么样?
rjson::fromJSON(sprintf("[%s]", paste(data$toParse, collapse=",")))