Skip to content

Latest commit

 

History

History

README.md

MathematicaVsR data

"Standard" data

Text data

The text of "Hamlet" is available in Mathematica through ExampleData. This CSV file, though, consists of separate play parts. (223 records.)

Here is how to ingest the zipped JSON data in Mathematica:

url = "https://github.com/antononcube/MathematicaVsR/blob/master/Data/MathematicaVsR-Data-StateOfUnionSpeeches.JSON.zip?raw=true";
str = Import[url, "String"];
filename = First@Import[StringToStream[str], "ZIP"];

aUSASpeeches = Association[Import[StringToStream[str], {"ZIP", filename, "JSON"}]];
Length[aUSASpeeches]

Here is how to ingest the zipped JSON data in R:

library(jsonlite)
temp <- tempfile()
download.file("https://github.com/antononcube/MathematicaVsR/blob/master/Data/MathematicaVsR-Data-StateOfUnionSpeeches.JSON.zip?raw=true",temp)
jsonRes <- jsonlite::fromJSON(unz(temp, "MathematicaVsR-Data-StateOfUnionSpeeches.JSON"))
length(jsonRes)

R data packages

Here is corresponding R data package: MathematicaVsRData.