Open svernede opened 9 years ago
I really beleave we should use "RJSONIO" instead of "rjson" It is faster, more flexible and handle null value.
That's what I do in my pull request https://github.com/influxdb/influxdb-r/pull/5 Commit https://github.com/martin-magakian/influxdb-r/commit/0aa5a652a02c0cc745dc7ed08d5c86ce52c7e4c1
a JSON respose
is currently transformed in to the R structure
Which is obviously not the expected answer.
In the conversion to the R data frame the JSON
null
value are dropped and the remaining values are recycled to match the other vector length. The correct handling of missing value in R should be done withNA