Re: [R] Reading Json data

2015-08-10 Thread Mark Sharp
Mayukh, I apologize for taking so long to get back to your problem. I expect you may have found the solution. If so I would be interested. I have developed a hack to solve the problem, but I expect if someone knew how to handle JSON objects or even text parsing better they could develop a more

Re: [R] Reading Json data

2015-07-27 Thread Mayukh Dass
Thanks Mark. I made a mistake when I was coping the code on the email. I have the parentheses in my code. Best, Mayukh > On Jul 27, 2015, at 5:16 PM, Mark Sharp wrote: > > Mayukh, > > I think you are missing an argument to paste() and a right parenthesis > character. > > Try > json_dat

Re: [R] Reading Json data

2015-07-27 Thread Mark Sharp
Mayukh, I think you are missing an argument to paste() and a right parenthesis character. Try json_data <- fromJSON(paste(readLines(json_file), collapse = " ")) Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Jul 27, 2015, at 3:41 PM, Mayukh Dass wrote: > > Hello, > > I am trying to

[R] Reading Json data

2015-07-27 Thread Mayukh Dass
Hello, I am trying to read a set of json files containing tweets using the following code: json_data <- fromJSON(paste(readLines(json_file)) Unfortunately, it only reads the first record on the file. For example, in the file below, it only reads the first record starting with "id":"tag: search.t