{"id":15554900,"url":"https://github.com/krzjoa/matricks","last_synced_at":"2025-07-19T16:33:12.839Z","repository":{"id":56936570,"uuid":"223035650","full_name":"krzjoa/matricks","owner":"krzjoa","description":"Useful tricks for matrix manipulation.","archived":false,"fork":false,"pushed_at":"2020-03-03T22:15:16.000Z","size":1793,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T02:51:11.275Z","etag":null,"topics":["algebra","matrix","matrix-manipulation","r"],"latest_commit_sha":null,"homepage":"https://krzjoa.github.io/matricks/","language":"R","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/krzjoa.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":"2019-11-20T22:02:00.000Z","updated_at":"2021-01-12T00:09:28.000Z","dependencies_parsed_at":"2022-08-21T07:20:44.903Z","dependency_job_id":null,"html_url":"https://github.com/krzjoa/matricks","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/krzjoa%2Fmatricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzjoa%2Fmatricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzjoa%2Fmatricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzjoa%2Fmatricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzjoa","download_url":"https://codeload.github.com/krzjoa/matricks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250504020,"owners_count":21441507,"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":["algebra","matrix","matrix-manipulation","r"],"created_at":"2024-10-02T15:04:13.719Z","updated_at":"2025-04-23T19:48:16.396Z","avatar_url":"https://github.com/krzjoa.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# matricks \u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\" /\u003e\n\u003e Useful tricks for matrix manipulation\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/matricks)](https://CRAN.R-project.org/package=matricks)\n[![Documentation](https://img.shields.io/badge/documentation-matricks-orange.svg?colorB=E91E63)](http://krzjoa.github.io/matricks)\n[![Travis build status](https://travis-ci.org/krzjoa/matricks.svg?branch=master)](https://travis-ci.org/krzjoa/matricks)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/krzjoa/matricks?branch=master\u0026svg=true)](https://ci.appveyor.com/project/krzjoa/matricks)\n[![Buy hex stciker](https://img.shields.io/badge/buy%20hex-matricks-green)](https://www.redbubble.com/people/krzjoa/works/43111073-matricks-r-package-hex?asc=u\u0026kind=sticker\u0026p=sticker\u0026size=small)\n\u003c!-- badges: end --\u003e\n\n### Installation\n`matricks` is available on CRAN, so you can install it using simply:\n```{r,message=FALSE, results='hide', eval=FALSE}\ninstall.packages('matricks')\n```\nIf you rather want to install dev version, you can do it with `devtools`.\n```{r install.dev, message=FALSE, results='hide', eval=FALSE}\ndevtools::install_github('krzjoa/matricks')\n```\n\n\n### Usage\nMain `matricks` functions are `m` and `v`, which provide convenient API to create matrices and vectors.  \nWhy should we write:\n```{r matrix_function}\nmatrix(c(5, 6, 7,\n         8, 0, 9,\n         3, 7, 1), nrow = 3, byrow = TRUE)\n```\nif we can simply create such a matrix like that:\n```{r m_function}\nlibrary(matricks)\n\nm(5, 6, 7|\n  8, 0, 9|\n  3, 7, 1)\n```\n\n`v` function is an useful shortcut for creating vertical vectors (single columns)\n```{r v_function}\nv(1,2,3)\nv(1:5)\n```\n\nSetting values in easier with `matricks`\n```{r set_values_function}\nmat \u003c- matrix(0, 3, 3)\nset_values(mat, c(1, 2) ~ 0.5, c(3, 1) ~ 7)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzjoa%2Fmatricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzjoa%2Fmatricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzjoa%2Fmatricks/lists"}