{"id":23029660,"url":"https://github.com/antononcube/mathematicavsr","last_synced_at":"2025-10-17T00:00:03.816Z","repository":{"id":71383394,"uuid":"44753477","full_name":"antononcube/MathematicaVsR","owner":"antononcube","description":"Example projects, code, and documents for comparing Mathematica with R.","archived":false,"fork":false,"pushed_at":"2024-08-21T13:16:16.000Z","size":33939,"stargazers_count":56,"open_issues_count":1,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-24T00:38:23.066Z","etag":null,"topics":["comparison","data-analysis","data-science","machine-learning","mathematica","r","time-series"],"latest_commit_sha":null,"homepage":"https://mathematicaforprediction.wordpress.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antononcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-22T15:10:40.000Z","updated_at":"2025-02-08T23:23:06.000Z","dependencies_parsed_at":"2025-01-24T04:31:01.217Z","dependency_job_id":"517ffb3a-c510-4b56-9493-70aab8e4b1ee","html_url":"https://github.com/antononcube/MathematicaVsR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FMathematicaVsR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FMathematicaVsR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FMathematicaVsR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antononcube%2FMathematicaVsR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antononcube","download_url":"https://codeload.github.com/antononcube/MathematicaVsR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248124848,"owners_count":21051757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparison","data-analysis","data-science","machine-learning","mathematica","r","time-series"],"created_at":"2024-12-15T14:16:37.028Z","updated_at":"2025-10-16T23:59:58.769Z","avatar_url":"https://github.com/antononcube.png","language":"HTML","funding_links":["https://www.buymeacoffee.com/antonov70"],"categories":[],"sub_categories":[],"readme":"# Mathematica vs. R\n\n## In brief\n\nThis repository has example projects, code, and documents for comparing\n[*Mathematica*](http://www.wolfram.com/mathematica/) with\n[R](https://www.r-project.org).\n\n\n### Mission statement\n\nThe development in this code repository aims to provide a collection\nof relatively simple but non-trivial example projects that illustrate\nthe use of Mathematica and R in different statistical, machine\nlearning, scientific, and software engineering programming activities.\n\nEach of the projects has implementations and documents made with both\nMathematica and R -- hopefully that would allow comparison and\nknowledge transfer.\n\n\n## License matters\n\nAll code files and executable documents are with the license GPL 3.0.\nFor details  see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/) .\n\nAll documents are with the license Creative Commons Attribution 4.0\nInternational (CC BY 4.0). For details see\n[https://creativecommons.org/licenses/by/4.0/](https://creativecommons.org/licenses/by/4.0/) .\n\n\n## Projects organization\n\nEach project has an introductory page (README.md) that lists the\nproject goals, concrete steps, and links to documents and scripts with\nfull explanations and code.\n\nGenerally, an introductory page would also have sections with comparison\nobservations and development history.\n\nEach project (generally) has two directories named \"Mathematica\" and\n\"R\" that have corresponding documents and code.\n\nSince Mathematica ships with R some projects would have only a\nMathematica-centric exposition of combining Mathematica and R\noutputs into one Mathematica notebook.\n\nSome projects have only Mathematica parts or only R parts. This is because\nthere are no equivalent counter-parts.\n\nThere is an attempt the corresponding Mathematica and R codes to be\nvery close in structure and steps flow. Often enough the structure and\nflow would be different because each programming language would make certain\nparticular techniques easier to apply or because of certain language idioms.\n\n\n## Where to begin\n\nThis presentation,\n[\"Mathematica vs. R\"](https://github.com/antononcube/MathematicaVsR/blob/master/RDocumentation/Presentations/WTC-2015/WTC-2015-Antonov-Mathematica-vs-R.pdf)\ngiven at the\n[Wolfram Technology Conference 2015](https://www.wolfram.com/events/technology-conference/2015/)\nis probably a good start.\n\nThis presentation, [\"Mathematica vs. R–Advanced Use Cases\"](https://github.com/antononcube/MathematicaVsR/tree/master/RDocumentation/Presentations/WTC-2016) \nwas given at\n [Wolfram Technology Conference 2016](https://www.wolfram.com/events/technology-conference/2016/). Here are recorded videos: \n\n- YouTube : https://www.youtube.com/watch?v=NKpeOKxCUl4 .\n\n- Wolfram Research : http://www.wolfram.com/broadcast/video.php?v=1745 .\n\n\nAs a warm-up of how to do the comparison see this mind-map (which is\nmade for Mathematica users):\n\n[![\"Mathematica-vs-R-mind-map-for-Mathematica-users\"](http://i.imgur.com/oZobBxfm.png)](https://github.com/antononcube/MathematicaVsR/blob/master/Mathematica-vs-R-mind-map.pdf)\n\n\n\n## Projects overview\n\n### Abbreviations table\n\n\u003ctable border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\"\u003e\n\n\n\u003ccolgroup\u003e\n\u003ccol  class=\"left\" /\u003e\n\n\u003ccol  class=\"left\" /\u003e\n\n\u003ccol  class=\"left\" /\u003e\n\n\u003ccol  class=\"left\" /\u003e\n\n\u003ccol  class=\"left\" /\u003e\n\u003c/colgroup\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth scope=\"col\" class=\"left\"\u003eAbbreviation\u003c/th\u003e\n\u003cth scope=\"col\" class=\"left\"\u003eDefinition\u003c/th\u003e\n\u003cth scope=\"col\" class=\"left\"\u003e\u0026#xa0;\u003c/th\u003e\n\u003cth scope=\"col\" class=\"left\"\u003eAbbreviation\u003c/th\u003e\n\u003cth scope=\"col\" class=\"left\"\u003eDefinition\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eARL\u003c/td\u003e\n\u003ctd class=\"left\"\u003eAssociation rules learning\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eNA\u003c/td\u003e\n\u003ctd class=\"left\"\u003enumerical analysis\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eBofW\u003c/td\u003e\n\u003ctd class=\"left\"\u003ebag of words (model)\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eNLP\u003c/td\u003e\n\u003ctd class=\"left\"\u003enatural language processing\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eCl\u003c/td\u003e\n\u003ctd class=\"left\"\u003e(machine learning) classification\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eOpt\u003c/td\u003e\n\u003ctd class=\"left\"\u003eoptimization\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eDA\u003c/td\u003e\n\u003ctd class=\"left\"\u003edata analysis\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eOutl\u003c/td\u003e\n\u003ctd class=\"left\"\u003eoutliers\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eDIng\u003c/td\u003e\n\u003ctd class=\"left\"\u003edata ingestion\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003ePar\u003c/td\u003e\n\u003ctd class=\"left\"\u003eparallel computing\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eDistr\u003c/td\u003e\n\u003ctd class=\"left\"\u003edistributions of variables\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eQR\u003c/td\u003e\n\u003ctd class=\"left\"\u003equantile regression\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eDWrang\u003c/td\u003e\n\u003ctd class=\"left\"\u003edata wrangling\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eRgr\u003c/td\u003e\n\u003ctd class=\"left\"\u003eregression\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eGoF\u003c/td\u003e\n\u003ctd class=\"left\"\u003egoodness of fit\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eRLink\u003c/td\u003e\n\u003ctd class=\"left\"\u003eMathematica's RLink\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eGr\u003c/td\u003e\n\u003ctd class=\"left\"\u003egraphs\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eROC\u003c/td\u003e\n\u003ctd class=\"left\"\u003ereceiver operating characteristic\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eHPC\u003c/td\u003e\n\u003ctd class=\"left\"\u003eHigh Performance Computing\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eSim\u003c/td\u003e\n\u003ctd class=\"left\"\u003esimulation(s)\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eImg\u003c/td\u003e\n\u003ctd class=\"left\"\u003eimage processing\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eStr\u003c/td\u003e\n\u003ctd class=\"left\"\u003estrings patterns and manipulation\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eIUI\u003c/td\u003e\n\u003ctd class=\"left\"\u003einteractive user interface(s)\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eTS\u003c/td\u003e\n\u003ctd class=\"left\"\u003etime series\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eLSA\u003c/td\u003e\n\u003ctd class=\"left\"\u003elatent semantic analysis\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003eVis\u003c/td\u003e\n\u003ctd class=\"left\"\u003evisualization\u003c/td\u003e\n\u003c/tr\u003e\n\n\n\u003ctr\u003e\n\u003ctd class=\"left\"\u003eMF\u003c/td\u003e\n\u003ctd class=\"left\"\u003ematrix factorization(s)\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003ctd class=\"left\"\u003e\u0026#xa0;\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\n### Projects overview table\n\nIn the following table the projects in italics are partially completed --\nthey have only a Mathematica or an R part.\n\n| Project                                              | ARL | BofW | Cl | DA | DIng | Distr | DWrang | GoF | Gr | Img | IUI | Rgr | LSA | MF | NA | NLP | Opt | Outl | Par | QR | RLink | ROC | Sim | Str | TS | Vis |\n|------------------------------------------------------|-----|------|----|----|------|-------|--------|-----|----|-----|-----|-----|-----|----|----|-----|-----|------|-----|----|-------|-----|-----|-----|----|-----|\n| [BrowsingDataWithChernoffFaces](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/BrowsingDataWithChernoffFaces)                        |     |      |    | X  | X    | X     | X      |     |    |     |     |     |     |    |    |     |     | X    |     |    |       |     |     |     |    | X   |\n| [DataWrangling](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/DataWrangling)                                        |     |      |    | X  | X    |       |  X      |     |    |     |     |     |     |    |    |     |     |      |     |    |       |     |     |     |    | X   |\n| [DeepLearningExamples](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/DeepLearningExamples)                                        |     |      |    | X  | X    |       | X      |     |    |     |     |     |     |    |    |     |     |      |     |    |       |     |     |     |    | X   |\n| [DistributionExtractionAFromGaussianNoisedMixture](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/DistributionExtractionAFromGaussianNoisedMixture)     |     |      |    |    |      | X     |        | X   |    |     |     |     |     |    |    |     | X   |      |     |    |       |     |     |     |    |     |\n| [HandwrittenDigitsClassificationByMatrixFactorization](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/HandwrittenDigitsClassificationByMatrixFactorization) |     |      | X  |    | X    |       |        |     |    | X   |     |     | X   | X  |    |     |     |      | X   |    |       |     |     |     |    | X   |\n| [ODEsWithSeasonalities](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/ODEsWithSeasonalities)                                |     |      |    |    |      |       |        |     |    |     | X   |     |     |    | X  |     |     |      |     |    |       |     | X   |     |    | X   |\n| [ProgressiveJackpotModeling](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/ProgressiveJackpotModeling)                           |     |      |    |    |      | X     |        |     |    |     |     |     |     |    |    |     |     |      |     |    |       |     | X   |     |    |     |\n| [ProgressiveMachineLearning](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/ProgressiveMachineLearning)                           |     |      | X  |    |  X    |     |        |     |    |     |     |     |     |    |    |     |     |      |     |    |       | X   |     |     |    |     |\n| [RegressionWithROC](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/RegressionWithROC)                                    |     |      | X  |    |      |       |        |     |    |     |     | X   |     |    |    |     |     |      |     |    |       | X   |     |     |    | X   |\n| [StatementsSaliencyInPodcasts](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/StatementsSaliencyInPodcasts)                         |     | X    |    |    | X    |       |        |     |    |     | X   |     |     |    |    | X   |     |      |     |    |       |     |     | X   |    |     |\n| [TextAnalysisOfTrumpTweets](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/TextAnalysisOfTrumpTweets)                            | X   | X    | X  | X  | X    |       | X      |     |    |     |     |     |     |    |    |     |     |      |     |    | X     |     |     | X   |    | X   |\n| [TimeSeriesAnalysisWithQuantileRegression](https://github.com/antononcube/MathematicaVsR/tree/master/Projects/TimeSeriesAnalysisWithQuantileRegression)             |     |      |    | X  | X    |       |        |     |    |     |     |     |     |    |    |     |     | X    |     | X  |       |     |     |     | X  | X   |\n\n\n\n## Future projects\n\nThe future projects are listed in order of their completion time\nproximity -- the highest in the list would be committed the soonest.\n\n- Personal banking data obfuscation\n\n- [Independent Component Analysis (ICA) programming and basic applications](https://mathematicaforprediction.wordpress.com/?s=ICA)\n\n- [Prefix trees (tries) programming and basic applications](https://mathematicaforprediction.wordpress.com/2013/12/06/tries-with-frequencies-for-data-mining/)\n\n- High Performance Computing (HPC) projects -- Spark, H2O, etc. \n\n- [Comparison of PCA, NNMF, and ICA over image de-noising](https://mathematicaforprediction.wordpress.com/2016/05/26/comparison-of-pca-nnmf-and-ica-over-image-de-noising/)\n\n- Informal verification of time series co-dependency\n\n- [Functional parsers programming and basic applications](https://mathematicaforprediction.wordpress.com/?s=functional+parsers)\n\n- [Recommendation engines](https://github.com/antononcube/Scalable-Recommender-Framework-project)\n\n- [Lebesgue numerical integration](https://mathematicaforprediction.wordpress.com/2016/07/01/adaptive-numerical-lebesgue-integration-by-set-measure-estimates/)\n\n- [Conversational engines](https://github.com/antononcube/ConversationalAgents)\n\n\n\n## Mathematica's [`RLink`](https://reference.wolfram.com/language/RLink/tutorial/Introduction.html)\n\nFor more information about *Mathematica*'s [`RLink`](https://reference.wolfram.com/language/RLink/tutorial/Introduction.html)\nsee\n\n- the YouTube video [\"RLink: Linking Mathematica and R\"](https://www.youtube.com/watch?v=5ppY7cTy71o),\n\n- the set-up web page guide [Setting up RLink for Mathematica](http://szhorvat.net/pelican/setting-up-rlink-for-mathematica.html).\n\n------\n\n## Support \u0026 appreciation\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/antonov70)\n\n😅 ☕️ 😀\n\n------\n\nAnton Antonov\n22.10.2015, Florida, USA\n29.10.2022, Florida, USA (update)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fmathematicavsr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantononcube%2Fmathematicavsr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantononcube%2Fmathematicavsr/lists"}