Re: [R] toJSON question

2010-12-11 Thread Dieter Menne
Santosh Srinivas wrote: > > I am trying to use RJSONIO > > I have: > x <- c(0,4,8,9) > y <- c(3,8,5,13) > z <- cbind(x,y) > > Any idea how to convert z into the JSON format below? > > I want to get the following JSON output to put into a php file. > [[0, 3], [4, 8], [8, 5], [9, 13]] > I ha

Re: [R] toJSON question

2010-12-11 Thread Duncan Temple Lang
On 12/11/10 8:00 AM, Santosh Srinivas wrote: > Hello, > > I am trying to use RJSONIO > > I have: > x <- c(0,4,8,9) > y <- c(3,8,5,13) > z <- cbind(x,y) > > Any idea how to convert z into the JSON format below? > > I want to get the following JSON output to put into a php file. > [[0, 3], [4,

[R] toJSON question

2010-12-11 Thread Santosh Srinivas
Hello, I am trying to use RJSONIO I have: x <- c(0,4,8,9) y <- c(3,8,5,13) z <- cbind(x,y) Any idea how to convert z into the JSON format below? I want to get the following JSON output to put into a php file. [[0, 3], [4, 8], [8, 5], [9, 13]] Thank you. __