https://github.com/quantgen/linkedmatrix
Column-Linked and Row-Linked Matrices
https://github.com/quantgen/linkedmatrix
cran r r-pkg
Last synced: 16 days ago
JSON representation
Column-Linked and Row-Linked Matrices
- Host: GitHub
- URL: https://github.com/quantgen/linkedmatrix
- Owner: QuantGen
- License: other
- Created: 2015-09-16T16:26:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T21:15:37.000Z (almost 5 years ago)
- Last Synced: 2025-04-10T15:36:37.385Z (about 1 month ago)
- Topics: cran, r, r-pkg
- Language: R
- Homepage:
- Size: 309 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LinkedMatrix
============[](https://CRAN.R-project.org/package=LinkedMatrix)
[](http://www.rdocumentation.org/packages/LinkedMatrix)
[](https://travis-ci.org/QuantGen/LinkedMatrix)
[](https://ci.appveyor.com/project/agrueneberg/linkedmatrix)
[](https://codecov.io/github/QuantGen/LinkedMatrix?branch=master)LinkedMatrix is an R package that provides matrices implemented as lists of matrix-like nodes, linked by columns or rows.
It was originally developed for the [BGData](https://CRAN.R-project.org/package=BGData) package to address the array size limit of [ff](https://CRAN.R-project.org/package=ff) (`length must be between 1 and .Machine$integer.max`) by chaining multiple `ff` objects together.
This package is deliberately kept simple. For computational methods that use LinkedMatrix check out the [BGData package](https://CRAN.R-project.org/package=BGData).
Example
-------The following code generates three different matrix-like objects and links them together by rows in a `RowLinkedMatrix`. The `LinkedMatrix` instance can then be treated like any other regular matrix.
```R
library(LinkedMatrix)m1 <- ff::ff(initdata = rnorm(50), dim = c(5, 10))
m2 <- bigmemory::big.matrix(init = rnorm(50), nrow = 5, ncol = 10)
m3 <- matrix(data = rnorm(50), nrow = 5, ncol = 10)
m <- RowLinkedMatrix(m1, m2, m3)dim(m)
m[1, ]
m[, 1]
```Installation
------------Install the stable version from CRAN:
```R
install.packages("LinkedMatrix")
```Alternatively, install the development version from GitHub:
```R
# install.packages("remotes")
remotes::install_github("QuantGen/LinkedMatrix")
```Documentation
-------------Further documentation can be found on [RDocumentation](http://www.rdocumentation.org/packages/LinkedMatrix).
Contributing
------------- Issue Tracker: https://github.com/QuantGen/LinkedMatrix/issues
- Source Code: https://github.com/QuantGen/LinkedMatrix