データ フレーム内に既に存在する JSON を解析および処理するにはどうすればよいですか?
サンプルデータ:
df <- data.frame(
id = c("x1", "x2"),
y = c('[{"Property":"94","Value":"Error"},{"Property":"C1","Value":"Found Match"},{"Property":"C2","Value":"Address Mismatch"}]', '[{"Property":"81","Value":"XYZ"},{"Property":"D1","Value":"Blah Blah"},{"Property":"Z2","Value":"Email Mismatch"}]')
)
列内の生の JSON を抽出、フォーマット、および整然とした列に分割したいと考えています。y
理想的にはlibrary(jsonlite)
.
前もって感謝します!