rdpeng/ProgrammingAssignment2
Repository for Programming Assignment 2 for R Programming on Coursera
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
This second programming assignment will require you to write an R function that is able to cache potentially time-consuming computations. For example, taking the mean of a numeric vector is typically a fast operation. However, for a very long vector, it may take too long to compute the mean, especially if it has to be computed repeatedly (e.g. in a loop). If the contents of a vector are not changing, it may make sense to cache the value of the mean so that when we need it again, it can be looked up in the cache rather than recomputed. In this Programming Assignment you will take advantage of the scoping rules of the R language and how they can be manipulated to preserve state inside of an R object. In this example we introduce the <<- operator which can be used to assign a value to an object in an…
Read the full README ↗ · Preview checked 2026-10-27T03:23:21.183Z
Inside the original README — Document outline
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Documentation belongs to its respective authors. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Repository for Programming Assignment 2 for R Programming on Coursera
Repository facts
- Owner
- rdpeng
- Primary language
- R
- Stars
- 894
- Forks
- 143,181
- Open issues + pull requests
- 4,294
- License
- Not reported — inspect the license file
- Archived
- No
- Default branch
- master
- Created
- 2014-01-14T22:07:41.000Z
- Last push
- 2024-08-14T21:14:33.000Z
Topics and intended use
No topics were included in the latest source metadata.
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-31T18:43:23.065Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.