Skip to content

Instantly share code, notes, and snippets.

View themiguelamador's full-sized avatar

Miguel Amador themiguelamador

  • Braga, Portugal
View GitHub Profile

Keybase proof

I hereby claim:

  • I am themiguelamador on github.
  • I am themiguelamador (https://keybase.io/themiguelamador) on keybase.
  • I have a public key ASD3Yu6Ar1yKfAYm4dNX13kiN9-KeBI6llr45fZUMlJaugo

To claim this, I am signing this object:

@themiguelamador
themiguelamador / RmakeCacheMatrix
Created November 4, 2014 21:49
This function implements a way of caching the result of the inverse matrix of a given matrix.
## This function implements a way of caching the result of the inverse matrix of a given matrix.
## makeCacheMatrix creates a special matrix from an initial matrix can can hold
## any additional information, wich can be used to store its inverse.
## Implementation of sub functions to set and set both objects.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y