Code Monkey home page Code Monkey logo

matrixkit's Introduction

"matrixkit"

matrixkit is an R package that provides a first aid kit for some matrix operations commonly used in multivariate data analysis methods.

Motivation

I developed matrixkit as part of a major project to develop a set of tools for multiblock methods. The main idea behind matrixkit is to have a set of functions that are frequently used in several multivariate methods. For instance, calculate the (euclidean) norm of a vector, the trace of a square matrix, a Projector (aka hat matrix) matrix, obtain a binary matrix from a given factor etc.

Installation

Stable version NOT on CRAN yet:

# stable version (not yet)
install.packages('matrixkit')

Development version on github:

library(devtools)
install_github('matrixkit', 'gastonstat')

Some examples

library(matrixkit)

# create a vector 
v = c(1, 1, 1, 1)

# vector norm
vnorm(v)

# create a square matrix
set.seed(10)
X = matrix(runif(25), 5, 5)

# trace of X
tr(X)

# lower triangular part
lower_triangular(X)

# upper triangular part
upper_triangular(X)

# create a matrix
set.seed(5)
M = matrix(runif(15), 5, 3)

# projector matrix
projector(M)

Author Contact

www.gastonsanchez.com

Gaston Sanchez (gaston.stat at gmail.com)

matrixkit's People

Contributors

gastonstat avatar

Watchers

Fathan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.