Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some minor typos. #1

Merged
merged 1 commit into from
Apr 22, 2014
Merged

Fixed some minor typos. #1

merged 1 commit into from
Apr 22, 2014

Conversation

gustavdelius
Copy link
Contributor

These typos do not cause any difficulties in understanding the instructions, so fixing them would be purely for aesthetical reasons.

rdpeng added a commit that referenced this pull request Apr 22, 2014
@rdpeng rdpeng merged commit 873d883 into rdpeng:master Apr 22, 2014
@rakesh-k
Copy link

Mr Peng,

Should I open the pull request as I felt it might let others see the code.

Sent via BlackBerry by AT&T

-----Original Message-----
From: "Roger D. Peng" [email protected]
Date: Tue, 22 Apr 2014 07:06:30
To: rdpeng/[email protected]
Reply-To: rdpeng/ProgrammingAssignment2 [email protected]
Subject: Re: [ProgrammingAssignment2] Fixed some minor typos. (#1)

Merged #1.


Reply to this email directly or view it on GitHub:
#1

filipebravo added a commit to filipebravo/ProgrammingAssignment2 that referenced this pull request Apr 27, 2014
Funcions makeCacheMatrix and cacheSolve coded
linsonglnkd pushed a commit to linsonglnkd/ProgrammingAssignment2 that referenced this pull request May 15, 2014
dndhall2001c added a commit to dndhall2001c/ProgrammingAssignment2 that referenced this pull request May 19, 2014
viitle added a commit to viitle/ProgrammingAssignment2 that referenced this pull request May 21, 2014
erovaris added a commit to erovaris/ProgrammingAssignment2 that referenced this pull request May 22, 2014
duggulous pushed a commit to duggulous/ProgrammingAssignment2 that referenced this pull request May 22, 2014
dhruvbhogle added a commit to dhruvbhogle/ProgrammingAssignment2 that referenced this pull request May 25, 2014
Committing cachematrix code
BedgieBear added a commit to BedgieBear/ProgrammingAssignment2 that referenced this pull request May 25, 2014
BedgieBear added a commit to BedgieBear/ProgrammingAssignment2 that referenced this pull request May 25, 2014
Merge pull request rdpeng#1 from BedgieBear/master
vorhonper added a commit to vorhonper/ProgrammingAssignment2 that referenced this pull request May 25, 2014
getting started
SamerF added a commit to SamerF/ProgrammingAssignment2 that referenced this pull request Jun 14, 2014
CamilleRSR added a commit to CamilleRSR/ProgrammingAssignment2 that referenced this pull request Jun 16, 2014
e-lo pushed a commit to e-lo/ProgrammingAssignment2 that referenced this pull request Jun 17, 2014
Hope this is it!
Minnie223 added a commit to Minnie223/ProgrammingAssignment2 that referenced this pull request Jun 22, 2014
cameroncramer added a commit to cameroncramer/ProgrammingAssignment2 that referenced this pull request Jul 20, 2014
modulei added a commit to modulei/ProgrammingAssignment2 that referenced this pull request Jul 21, 2014
Submitting draft rdpeng#1 of assignment 2: Contains fully functioning
makeChacheMatrix with set, get, setinv, and get inv. Also contains
cacheSolve which retrieves the invese of a matrix from cache.
ashish-kothari added a commit to ashish-kothari/ProgrammingAssignment2 that referenced this pull request Jul 25, 2014
EZRider112 pushed a commit to EZRider112/ProgrammingAssignment2 that referenced this pull request Jul 26, 2014
bradhof added a commit to bradhof/ProgrammingAssignment2 that referenced this pull request Jul 27, 2014
Provided implementation for both functions
DavoodQorbani added a commit to DavoodQorbani/ProgrammingAssignment2 that referenced this pull request Jul 27, 2014
2014.07.27 rdpeng#1
Committing "Programming Assignment 2: Lexical Scoping" R file into my
git repository
odefield added a commit to odefield/ProgrammingAssignment2 that referenced this pull request Aug 21, 2014
A pair of functions that cache the inverse of a matrix:
makeCacheMatrix
cacheSolve

Added more comments to bring clarity to the program

Should be run in the command line/terminal this way:

rdpeng#1. pass a square matrix to makeCacheMatrix (example:
A=matrix(c(1,2,3,4), nrow=2, ncol=2)

rdpeng#2 cache the inverse with cacheSolve(A)

rdpeng#3 access the cached inverse with cacheSolve(A)
susycote added a commit to susycote/ProgrammingAssignment2 that referenced this pull request Aug 23, 2014
bmaschino added a commit to bmaschino/ProgrammingAssignment2 that referenced this pull request Aug 23, 2014
wamarey49 added a commit to wamarey49/ProgrammingAssignment2 that referenced this pull request Aug 24, 2014
hugoalvarado added a commit to hugoalvarado/ProgrammingAssignment2 that referenced this pull request Aug 24, 2014
commit rdpeng#1 for  R Programming Assignment 2
osobaer added a commit to osobaer/ProgrammingAssignment2 that referenced this pull request Sep 11, 2014
1st working solution
dcjctcac added a commit to dcjctcac/ProgrammingAssignment2 that referenced this pull request Jan 23, 2018
dcjctcac added a commit to dcjctcac/ProgrammingAssignment2 that referenced this pull request Jan 24, 2018
cbirole added a commit to cbirole/ProgrammingAssignment2 that referenced this pull request Feb 27, 2018
makeCacheMatrix <- function(x = matrix()) {
  inv <- NULL   
  set <- function(y) { rdpeng#2
    x <<- y
    inv <<- NULL
    
  }
  get <- function() x rdpeng#1
  setinverse <- function(inverse) inv <<- inverse rdpeng#3
  getinverse <- function() inv rdpeng#4
  list(set=set, get=get, setinverse=setinverse,getinverse=getinverse)
}

#This function returns the inverse of matrix,
#it checks if the inverse has already been returned first. If so, it gets the result.
#if not, it retrieve the matrix from cache

cacheSolve <- function(x, ...) {
  ## Return a matrix that is the inverse of 'x'
  inv <- x$getinverse{ ##Chitra's comment- Unexpected '{'
    if(!is.null(inv)){
      message('getting cached data')
      return (inv)
    } #Chitra's comment- If I run this code in R - I get an error stating object 'inv' not found
    data <- x$get() #Chitra's comment- $ operator is unexpected here
    inv <- solve(data) #Chitra's comment- R is not able to coerce type 'closure' to vector type 'any'
    x$setinverse(inv) #Chitra's comment- $ is unexpected
    inv #Chitra's comment- Object 'inv' not found
  } #Chitra's comment- unexpected '}'
  
}
vrindakalia added a commit to vrindakalia/ProgrammingAssignment2 that referenced this pull request Mar 26, 2018
rgrandy added a commit to rgrandy/ProgrammingAssignment2 that referenced this pull request Jun 5, 2018
Suyavsaifi referenced this pull request in Suyavsaifi/ProgrammingAssignment2 Aug 18, 2018
@Shakeab21 Shakeab21 mentioned this pull request Oct 21, 2018
Markmydata added a commit to Markmydata/ProgrammingAssignment2 that referenced this pull request May 13, 2019
tsam5012 pushed a commit to tsam5012/ProgrammingAssignment2 that referenced this pull request Jun 11, 2019
tsam5012 pushed a commit to tsam5012/ProgrammingAssignment2 that referenced this pull request Jun 11, 2019
richeekawasthi added a commit to richeekawasthi/ProgrammingAssignment2 that referenced this pull request Apr 17, 2020
@Amanfly Amanfly mentioned this pull request Apr 23, 2020
WaleedBinNasir-20 pushed a commit to WaleedBinNasir-20/ProgrammingAssignment2 that referenced this pull request May 11, 2020
pillaishibu added a commit to pillaishibu/ProgrammingAssignment2 that referenced this pull request Jun 28, 2020
TracerMAK added a commit to TracerMAK/ProgrammingAssignment2 that referenced this pull request Jun 30, 2020
LucreziaRo added a commit to LucreziaRo/ProgrammingAssignment2 that referenced this pull request Jul 12, 2020
leiton68 added a commit to leiton68/ProgrammingAssignment2 that referenced this pull request Aug 3, 2020
leiton68 added a commit to leiton68/ProgrammingAssignment2 that referenced this pull request Aug 3, 2020
leiton68 added a commit to leiton68/ProgrammingAssignment2 that referenced this pull request Aug 3, 2020
dzpiers added a commit to dzpiers/ProgrammingAssignment2 that referenced this pull request Aug 22, 2020
bnsmar referenced this pull request in bnsmar/ProgrammingAssignment2 Sep 9, 2020
audreyuu pushed a commit to audreyuu/ProgrammingAssignment2 that referenced this pull request Sep 13, 2020
deboraklingenberg added a commit to deboraklingenberg/ProgrammingAssignment2 that referenced this pull request Sep 20, 2020
kenyasmiles referenced this pull request in kenyasmiles/ProgrammingAssignment2 Oct 13, 2020
kingsleyakpeji added a commit to kingsleyakpeji/ProgrammingAssignment2 that referenced this pull request Dec 26, 2020
Deeksha-Sahu pushed a commit to Deeksha-Sahu/ProgrammingAssignment2 that referenced this pull request Dec 28, 2020
elliedoom added a commit to elliedoom/ProgrammingAssignment2 that referenced this pull request Jan 18, 2022
swsan added a commit to swsan/ProgrammingAssignment2 that referenced this pull request Nov 9, 2022
AkashMer added a commit to AkashMer/ProgrammingAssignment2 that referenced this pull request Jun 15, 2023
average-R-user added a commit to average-R-user/ProgrammingAssignment2 that referenced this pull request Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants