I have been trying to use your implementation of "Study Observation Units as a Table" (your studies_table.R function). It does not return the correct table when there are missing values in the JSON (represented as null). I have solved this problem by using the fromJSON function from the jsonlite package. Here is a short example:
resp <- httr::GET(...), where you obtain the resp(onse) from your GET call
jsonlite::fromJSON(httr::content(resp, as = "text")), parse the resp(onse) into a list, where the table is given in $result$data
the column headers are given in the list by $result$headerRow concatenated with $result$observationVariableNames
Hope this information will be useful for you as well,
Hi Reinhard,
I have been trying to use your implementation of "Study Observation Units as a Table" (your studies_table.R function). It does not return the correct table when there are missing values in the JSON (represented as null). I have solved this problem by using the fromJSON function from the jsonlite package. Here is a short example:
Hope this information will be useful for you as well,
Regards, Maikel