{"action":"opened","number":2513,"pull_request":{"url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513","id":96571690,"html_url":"https://github.com/rdpeng/ProgrammingAssignment2/pull/2513","diff_url":"https://github.com/rdpeng/ProgrammingAssignment2/pull/2513.diff","patch_url":"https://github.com/rdpeng/ProgrammingAssignment2/pull/2513.patch","issue_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/2513","number":2513,"state":"open","locked":false,"title":"Update cachematrix.R","user":{"login":"Roslad","id":23038846,"avatar_url":"https://avatars.githubusercontent.com/u/23038846?v=3","gravatar_id":"","url":"https://api.github.com/users/Roslad","html_url":"https://github.com/Roslad","followers_url":"https://api.github.com/users/Roslad/followers","following_url":"https://api.github.com/users/Roslad/following{/other_user}","gists_url":"https://api.github.com/users/Roslad/gists{/gist_id}","starred_url":"https://api.github.com/users/Roslad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roslad/subscriptions","organizations_url":"https://api.github.com/users/Roslad/orgs","repos_url":"https://api.github.com/users/Roslad/repos","events_url":"https://api.github.com/users/Roslad/events{/privacy}","received_events_url":"https://api.github.com/users/Roslad/received_events","type":"User","site_admin":false},"body":"## Put comments here that give an overall description of what your\r\n## functions do\r\n\r\n## Write a short comment describing this function\r\n##This a list of Function to set matrix and Inverse\r\n##it also a list of Function that get matrix and inverse\r\n\r\nmakeCacheMatrix <- function(x = matrix()) {\r\n  inv <- NULL\r\n  set <- function(y) {\r\n    x <<- y\r\n    inv <<- NULL\r\n  }\r\n  get <- function() x\r\n  setInverse <- function(inverse) inv <<- inverse\r\n  getInverse <- function() inv\r\n  list(set = set,\r\n       get = get,\r\n       setInverse = setInverse,\r\n       getInverse = getInverse)\r\n}\r\n\r\n## Write a short comment describing this function\r\n\r\n## The function computes the inverse of the special \"matrix\" which is created by \r\n## makeCacheMatrix above. If the inverse has already been calculated (and the \r\n## matrix did not changed), then it should retrieve the inverse from the cache.\r\n\r\ncacheSolve <- function(x, ...) {\r\n  ## Return a matrix that is the inverse of 'x'\r\n  inv <- x$getInverse()\r\n  if (!is.null(inv)) {\r\n    message(\"getting cached data\")\r\n    return(inv)\r\n  }\r\n  mat <- x$get()\r\n  inv <- solve(mat, ...)\r\n  x$setInverse(inv)\r\n  inv\r\n}\r\n\r\n##checking My Fuctions\r\nmy_matrix <- makeCacheMatrix(matrix(1:4, 2, 2))\r\nmy_matrix$get()\r\n\r\nmy_matrix$getInverse()\r\ncacheSolve(my_matrix)\r\ncacheSolve(my_matrix)\r\nmy_matrix$getInverse()\r\nmy_matrix$set(matrix(c(2, 2, 1, 4), 2, 2))\r\nmy_matrix$get()\r\nmy_matrix$getInverse()\r\ncacheSolve(my_matrix)\r\ncacheSolve(my_matrix)\r\nmy_matrix$getInverse()","created_at":"2016-12-05T17:19:51Z","updated_at":"2016-12-05T17:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513/commits","review_comments_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513/comments","review_comment_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/2513/comments","statuses_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/statuses/5a074e6005f985bf9919a610b711b9024ea454f9","head":{"label":"Roslad:patch-6","ref":"patch-6","sha":"5a074e6005f985bf9919a610b711b9024ea454f9","user":{"login":"Roslad","id":23038846,"avatar_url":"https://avatars.githubusercontent.com/u/23038846?v=3","gravatar_id":"","url":"https://api.github.com/users/Roslad","html_url":"https://github.com/Roslad","followers_url":"https://api.github.com/users/Roslad/followers","following_url":"https://api.github.com/users/Roslad/following{/other_user}","gists_url":"https://api.github.com/users/Roslad/gists{/gist_id}","starred_url":"https://api.github.com/users/Roslad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roslad/subscriptions","organizations_url":"https://api.github.com/users/Roslad/orgs","repos_url":"https://api.github.com/users/Roslad/repos","events_url":"https://api.github.com/users/Roslad/events{/privacy}","received_events_url":"https://api.github.com/users/Roslad/received_events","type":"User","site_admin":false},"repo":{"id":71832281,"name":"ProgrammingAssignment2","full_name":"Roslad/ProgrammingAssignment2","owner":{"login":"Roslad","id":23038846,"avatar_url":"https://avatars.githubusercontent.com/u/23038846?v=3","gravatar_id":"","url":"https://api.github.com/users/Roslad","html_url":"https://github.com/Roslad","followers_url":"https://api.github.com/users/Roslad/followers","following_url":"https://api.github.com/users/Roslad/following{/other_user}","gists_url":"https://api.github.com/users/Roslad/gists{/gist_id}","starred_url":"https://api.github.com/users/Roslad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roslad/subscriptions","organizations_url":"https://api.github.com/users/Roslad/orgs","repos_url":"https://api.github.com/users/Roslad/repos","events_url":"https://api.github.com/users/Roslad/events{/privacy}","received_events_url":"https://api.github.com/users/Roslad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Roslad/ProgrammingAssignment2","description":"Repository for Programming Assignment 2 for R Programming on Coursera","fork":true,"url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2","forks_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/forks","keys_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/teams","hooks_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/hooks","issue_events_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/issues/events{/number}","events_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/events","assignees_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/assignees{/user}","branches_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/branches{/branch}","tags_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/tags","blobs_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/statuses/{sha}","languages_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/languages","stargazers_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/stargazers","contributors_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/contributors","subscribers_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/subscribers","subscription_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/subscription","commits_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/contents/{+path}","compare_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/merges","archive_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/downloads","issues_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/issues{/number}","pulls_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/pulls{/number}","milestones_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/milestones{/number}","notifications_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/labels{/name}","releases_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/releases{/id}","deployments_url":"https://api.github.com/repos/Roslad/ProgrammingAssignment2/deployments","created_at":"2016-10-24T21:08:15Z","updated_at":"2016-11-18T19:52:39Z","pushed_at":"2016-12-05T17:18:46Z","git_url":"git://github.com/Roslad/ProgrammingAssignment2.git","ssh_url":"git@github.com:Roslad/ProgrammingAssignment2.git","clone_url":"https://github.com/Roslad/ProgrammingAssignment2.git","svn_url":"https://github.com/Roslad/ProgrammingAssignment2","homepage":"https://github.com/Roslad/ProgrammingAssignment2.git","size":11,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rdpeng:master","ref":"master","sha":"7f657dd22ac20d22698c53b23f0057e1a12c09b7","user":{"login":"rdpeng","id":9612,"avatar_url":"https://avatars.githubusercontent.com/u/9612?v=3","gravatar_id":"","url":"https://api.github.com/users/rdpeng","html_url":"https://github.com/rdpeng","followers_url":"https://api.github.com/users/rdpeng/followers","following_url":"https://api.github.com/users/rdpeng/following{/other_user}","gists_url":"https://api.github.com/users/rdpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/rdpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdpeng/subscriptions","organizations_url":"https://api.github.com/users/rdpeng/orgs","repos_url":"https://api.github.com/users/rdpeng/repos","events_url":"https://api.github.com/users/rdpeng/events{/privacy}","received_events_url":"https://api.github.com/users/rdpeng/received_events","type":"User","site_admin":false},"repo":{"id":15917132,"name":"ProgrammingAssignment2","full_name":"rdpeng/ProgrammingAssignment2","owner":{"login":"rdpeng","id":9612,"avatar_url":"https://avatars.githubusercontent.com/u/9612?v=3","gravatar_id":"","url":"https://api.github.com/users/rdpeng","html_url":"https://github.com/rdpeng","followers_url":"https://api.github.com/users/rdpeng/followers","following_url":"https://api.github.com/users/rdpeng/following{/other_user}","gists_url":"https://api.github.com/users/rdpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/rdpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdpeng/subscriptions","organizations_url":"https://api.github.com/users/rdpeng/orgs","repos_url":"https://api.github.com/users/rdpeng/repos","events_url":"https://api.github.com/users/rdpeng/events{/privacy}","received_events_url":"https://api.github.com/users/rdpeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rdpeng/ProgrammingAssignment2","description":"Repository for Programming Assignment 2 for R Programming on Coursera","fork":false,"url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2","forks_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/forks","keys_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/teams","hooks_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/hooks","issue_events_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/events{/number}","events_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/events","assignees_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/assignees{/user}","branches_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/branches{/branch}","tags_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/tags","blobs_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/git/refs{/sha}","trees_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/statuses/{sha}","languages_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/languages","stargazers_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/stargazers","contributors_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/contributors","subscribers_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/subscribers","subscription_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/subscription","commits_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/commits{/sha}","git_commits_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/git/commits{/sha}","comments_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/comments{/number}","issue_comment_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/comments{/number}","contents_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/contents/{+path}","compare_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/merges","archive_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/downloads","issues_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues{/number}","pulls_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls{/number}","milestones_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/milestones{/number}","notifications_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/labels{/name}","releases_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/releases{/id}","deployments_url":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/deployments","created_at":"2014-01-14T22:07:41Z","updated_at":"2016-12-04T07:49:36Z","pushed_at":"2016-12-05T17:19:51Z","git_url":"git://github.com/rdpeng/ProgrammingAssignment2.git","ssh_url":"git@github.com:rdpeng/ProgrammingAssignment2.git","clone_url":"https://github.com/rdpeng/ProgrammingAssignment2.git","svn_url":"https://github.com/rdpeng/ProgrammingAssignment2","homepage":null,"size":6670,"stargazers_count":436,"watchers_count":436,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97201,"mirror_url":null,"open_issues_count":1863,"forks":97201,"open_issues":1863,"watchers":436,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513"},"html":{"href":"https://github.com/rdpeng/ProgrammingAssignment2/pull/2513"},"issue":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/2513"},"comments":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/issues/2513/comments"},"review_comments":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513/comments"},"review_comment":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/pulls/2513/commits"},"statuses":{"href":"https://api.github.com/repos/rdpeng/ProgrammingAssignment2/statuses/5a074e6005f985bf9919a610b711b9024ea454f9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"Roslad"}}