Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

block matrix and other fat diagonals

NotificationsYou must be signed in to change notification settings

bquast/diagonals

Repository files navigation

LicenseCRAN VersionR build statusCoverage statusTotal RStudio Cloud DownloadsRStudio Cloud Downloads

Block-diagonal matrices can be extracted or removed using two small functions implemented here, in addition, non-square matrices are supported.

Block diagonal matrices occur when we combine two dimensions of a data set along one edge of a matrix. For example, trade-flow data in thedecompr andgvc package have each country-industry combination occur on each edge of the matrix.

Demonstration

diagonals demonstration

Installation

The stable version of thediagonals package can be install fromCRAN using:

install.packages("diagonals")

The development version, to be usedat your peril, can be installed using:

if (!require('remotes')) install.packages('remotes')remotes::install_github("bquast/diagonals")

Usage

Following installation, the package can be loaded using:

library(diagonals)

For general information on using the package, please refer to the help files .

help("diagonals")help(package="diagonals")

For examples of usage, see the function specific help page.

help("fatdiag")

In addition to the help files we provide long form examples in thevignettes .

vignette("fatdiag")# orbrowseVignettes("diagonals")

Additional Information

An overview of the changes is available in the NEWS file.

news(package="diagonals")

There is also a blog post with information on mypersonal website.

https://qua.st/diagonals/

Development

Development takes place on the GitHub page.

https://github.com/bquast/diagonals

Bugs can be filed on the issues page on GitHub.

https://github.com/bquast/diagonals/issues

About

block matrix and other fat diagonals

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp