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)
my には、 toParse60 万行のシンプル/ショート JSON があります。
toParse
fromJSONただし、操作をベクトル化しないため、おそらく非常に遅いため、使用する必要がありますlapply。
fromJSON
lapply
JSONのリストを解析するためのより良い方法があるかどうか疑問に思っていますか?
テキストを配列に貼り付けて解析するのはrjson::fromJSON(sprintf("[%s]", paste(data$toParse, collapse=",")))どうですか?
rjson::fromJSON(sprintf("[%s]", paste(data$toParse, collapse=",")))