I am getting below mentioned error while passing Json dataframe.
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
my data frame:
view(df_1)
json_data id
{Data in json format} 123
{Data in json format} 456
{Data in json format} 789
I am using below mentioned code:
library(jsonlite)
json_dfs <- mapply(f, df_1$json_data, df_1$id, SIMPLIFY = FALSE)
The JSON file content from OP: view(df_1$json_data)