{"id":22088015,"url":"https://github.com/coatless-rpkg/r-to-armadillo","last_synced_at":"2025-07-24T18:33:27.458Z","repository":{"id":27686537,"uuid":"31172940","full_name":"coatless-rpkg/r-to-armadillo","owner":"coatless-rpkg","description":"Converting base R code to Armadillo code for use with RcppArmadillo or for external programs (e.g. Matlab, Mathematica, ...)","archived":false,"fork":false,"pushed_at":"2023-11-14T08:18:31.000Z","size":759,"stargazers_count":30,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-19T06:56:47.575Z","etag":null,"topics":["armadillo","r","rcpp"],"latest_commit_sha":null,"homepage":"http://r-pkg.thecoatlessprofessor.com/r-to-armadillo/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coatless-rpkg.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-22T18:04:30.000Z","updated_at":"2024-08-24T12:49:55.000Z","dependencies_parsed_at":"2022-09-02T22:21:10.987Z","dependency_job_id":null,"html_url":"https://github.com/coatless-rpkg/r-to-armadillo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coatless-rpkg/r-to-armadillo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fr-to-armadillo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fr-to-armadillo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fr-to-armadillo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fr-to-armadillo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coatless-rpkg","download_url":"https://codeload.github.com/coatless-rpkg/r-to-armadillo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fr-to-armadillo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266886754,"owners_count":24001061,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["armadillo","r","rcpp"],"created_at":"2024-12-01T02:07:21.188Z","updated_at":"2025-07-24T18:33:27.192Z","avatar_url":"https://github.com/coatless-rpkg.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n\n# R To Armadillo (`r2arma`)\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/coatless-rpkg/r-to-armadillo/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/r-to-armadillo/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nR is an amazing language to explore and communicate statistics with. However, when we care about attain results quickly, R's primary weakness is shown: speed. The objective of this repository is to strengthen this weakness by providing high performing R base functions within [Armadillo](http://arma.sourceforge.net/docs.html) (and potentially eigen). Futhermore, as the code is written within C++, the code is able to be ported to different platforms at ease. Lastly, an additional benefit of this project is a repository containing programming examples by field.\n\nFeel free to use the functions available within the repository per the MIT License.\n\n# Project Details\n\nThe functions written here act either as a means to replicate existing R functionality within [Armadillo](http://arma.sourceforge.net/docs.html) or as a helpful interface to [Armadillo](http://arma.sourceforge.net/docs.html)'s objects to perform crazier operations. These functions are meant to be easily included within existing code bases with minimal dependencies. In its packaged form, the project uses the R to C++ interface afforded by [`RcppArmadillo`](https://github.com/rcppcore/rcpparmadillo)\n\n**Note:** At some point in the future, these functions may end up being merged into the [`RcppArmadillo`](https://github.com/rcppcore/rcpparmadillo) project.\n\nThe current implementation has:\n\n* [Distributions](https://github.com/coatless-rpkg/r-to-armadillo/blob/master/src/distributions.cpp)\n    * Random Sampling\n        * Wishart\n        * Inverse Wishart\n* [Time Series](https://github.com/coatless-rpkg/r-to-armadillo/blob/master/src/ts.cpp)\n    * Difference by lag and number of differences\n    * Discrete Integration by lag, number of differences, and - optionally - initial values.\n    * Convert ARMA process to an infinite MA process\n    * Compute the theoretical autocorrelation function (ACF) for an ARMA process.\n    * Convolution (Moving Average) or Recursive (Autoregression) filters.\n    * Calculate Discrete Fourier Transformation (DFT) for Autocovariance Function (ACF)\n* [Sequences](https://github.com/coatless-rpkg/r-to-armadillo/blob/master/src/seq.cpp)\n    * Generate Integer Sequence from `a` to `b`\n    * Generate Double Sequence form `a` to `b` or `-a` to `a` with `n` points.\n    * Obtain a sequence along a vector.\n    * Obtain a sequence given a vector length.\n* [Manipulations](https://github.com/coatless-rpkg/r-to-armadillo/blob/master/src/manipulations.cpp)\n    * Vector\n        * Reverse vector (e.g. `1:3` =\u003e `3:1`)\n    * Matrix\n        * Reverse subset for row/column (e.g. `0:3` vs. `3:0`)\n        * Subset Non-connected Regions (e.g. `c(0,1)` and `c(2,1)`)\n    * Field\n        * Convert `field\u003cvec\u003e` to `mat`\n        * Total sum of elements in `field`\n        \n\n# Contributing\n\nContributions such as translations of R functions to C++ are welcome via a [pull request](https://github.com/coatless-rpkg/r-to-armadillo/pulls). If you have a new feature request, please feel free to write an [issue](https://github.com/coatless-rpkg/r-to-armadillo/issues). \n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Fr-to-armadillo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoatless-rpkg%2Fr-to-armadillo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Fr-to-armadillo/lists"}