我在传递 Json 数据帧时遇到了下面提到的错误。
Error in data.frame(Addr = "London", companyName = "Eagle SUITS", :
arguments imply differing number of rows: 1, 0, 2 In addition: Warning message:
In data.frame(Addr = "NA", companyName = "SAMTEK ENTERPRISES", :
row names were found from a short variable and have been discarded
我的数据框:
view(df_1)
json_data id
{Data in json format} 123
{Data in json format} 456
{Data in json format} 789
我正在使用下面提到的代码:
library(jsonlite)
json_dfs <- mapply(f, df_1$json_data, df_1$id, SIMPLIFY = FALSE)
来自 OP 的 JSON 文件内容:view(df_1$json_data)