tests/array.R

library(RJSONIO)
a = array(1:(5*7*9), c(5, 7, 9))
o = toJSON(a)
isValidJSON(I(o))
b = fromJSON(I(o))

toJSON(table(1:3))
toJSON(table(1:3, 1:3))

#z = apply(a, 3, function(x, dim) toJSON(x))
#toJSON(array(1:8,c(2,2,2)))

Try the RJSONIO package in your browser

Any scripts or data that you put into this service are public.

RJSONIO documentation built on Nov. 27, 2023, 5:09 p.m.