Skip to content

Commit 5f668c4

Browse files
author
gustav.delius
committed
Fixed some minor typos.
git-svn-id: https://github.com/duggulous/ProgrammingAssignment2.git/trunk@5 685be34d-3623-72cb-7069-ce57b7db7bff
1 parent e1f0b13 commit 5f668c4

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
### Introduction
22

33
This second programming assignment will require you to write an R
4-
function is able to cache potentially time-consuming computations. For
4+
function that is able to cache potentially time-consuming computations. For
55
example, taking the mean of a numeric vector is typically a fast
66
operation. However, for a very long vector, it may take too long to
77
compute the mean, especially if it has to be computed repeatedly (e.g.
88
in a loop). If the contents of a vector are not changing, it may make
99
sense to cache the value of the mean so that when we need it again, it
1010
can be looked up in the cache rather than recomputed. In this
11-
Programming Assignment will take advantage of the scoping rules of the R
11+
Programming Assignment you will take advantage of the scoping rules of the R
1212
language and how they can be manipulated to preserve state inside of an
1313
R object.
1414

@@ -17,7 +17,7 @@ R object.
1717
In this example we introduce the `<<-` operator which can be used to
1818
assign a value to an object in an environment that is different from the
1919
current environment. Below are two functions that are used to create a
20-
special object that stores a numeric vector and cache's its mean.
20+
special object that stores a numeric vector and caches its mean.
2121

2222
The first function, `makeVector` creates a special "vector", which is
2323
really a list containing a function to
@@ -64,8 +64,8 @@ function.
6464

6565
### Assignment: Caching the Inverse of a Matrix
6666

67-
Matrix inversion is usually a costly computation and their may be some
68-
benefit to caching the inverse of a matrix rather than compute it
67+
Matrix inversion is usually a costly computation and there may be some
68+
benefit to caching the inverse of a matrix rather than computing it
6969
repeatedly (there are also alternatives to matrix inversion that we will
7070
not discuss here). Your assignment is to write a pair of functions that
7171
cache the inverse of a matrix.
@@ -88,16 +88,13 @@ invertible.
8888

8989
In order to complete this assignment, you must do the following:
9090

91-
1. Fork the GitHub repository containing the stub R files at
91+
1. Clone the GitHub repository containing the stub R files at
9292
[https://github.com/rdpeng/ProgrammingAssignment2](https://github.com/rdpeng/ProgrammingAssignment2)
93-
to create a copy under your own account.
94-
2. Clone your forked GitHub repository to your computer so that you can
95-
edit the files locally on your own machine.
96-
3. Edit the R file contained in the git repository and place your
93+
2. Edit the R file contained in the git repository and place your
9794
solution in that file (please do not rename the file).
98-
4. Commit your completed R file into YOUR git repository and push your
99-
git branch to the GitHub repository under your account.
100-
5. Submit to Coursera the URL to your GitHub repository that contains
95+
3. Commit your completed R file into YOUR git repository and push your
96+
git branch to your GitHub account.
97+
4. Submit to Coursera the URL to your GitHub repository that contains
10198
the completed R code for the assignment.
10299

103100
### Grading

0 commit comments

Comments
 (0)