Last active
August 29, 2015 13:56
-
-
Save alfredplpl/9189535 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#delete the next # if rjson package is not installed in the system | |
#install.packages("rjson") | |
library("rjson") | |
#load from a json file | |
data=fromJSON(file="E:/test.json") | |
#check the data | |
print(data) | |
##dump the variable as a file | |
#write(toJSON(data),file="E:/test.json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> #check the data | |
> print(data) | |
$A | |
[1] 10 | |
$C | |
[1] 30 40 | |
$B | |
[1] 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment