Reputation: 29968
Then I read JSON files from R using rjson it seems that JSON arrays (enclosed with []
) are converted to (unnamed) R lists, not vectors.
Therefore I have to first unlist(recuresice=F)
each of those lists before I can work with them.
Upvotes: 1
Views: 1424
Reputation: 18628
JSON arrays can store values of different types, so they are equivalent to R unnamed lists.
Upvotes: 2