This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Caching the Inverse of a Matrix: | |
## Matrix inversion is usually a costly computation and there may be some | |
## benefit to caching the inverse of a matrix rather than compute it repeatedly. | |
## Below are a pair of functions that are used to create a special object that | |
## stores a matrix and caches its inverse. | |
## This function creates a special "matrix" object that can cache its inverse. | |
makeCacheMatrix <- function(x = matrix()) { | |
inv <- NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 15 | |
| | |
| | 0% | |
| One of the greatest strengths of R, relative to other programming languages, is the ease with which we can create publication-quality graphics. In this lesson, | |
| you'll learn about base graphics in R. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 14 | |
| | |
| | 0% | |
| R has a special way of representing dates and times, which can be helpful if you're working with data that show how something changes over time (i.e. time-series | |
| data) or if your data contain some other temporal information, like dates of birth. | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 13 | |
| | |
| | 0% | |
| One of the great advantages of using a statistical programming language like R is its vast collection of tools for simulating random numbers. | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
election: 12 | |
| | |
| | 0% | |
| Whenever you're working with a new dataset, the first thing you should do is look at it! What is the format of the data? What are the dimensions? What are the | |
| variable names? How are the variables stored? Are there missing data? Are there any flaws in the data? | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 11 | |
| | |
| | 0% | |
| In the last lesson, you learned about the two most fundamental members of R's | |
| *apply family of functions: lapply() and sapply(). Both take a list as input, | |
| apply a function to each element of the list, then combine and return the | |
| result. lapply() always returns a list, whereas sapply() attempts to simplify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
election: 7 | |
| | |
| | 0% | |
| In this lesson, we'll cover matrices and data frames. Both represent | |
| 'rectangular' data types, meaning that they are used to store tabular data, | |
| with rows and columns. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 6 | |
| | |
| | 0% | |
| In this lesson, we'll see how to extract elements from a vector based on some | |
| conditions that we specify. | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 10 | |
| | |
| | 0% | |
| In this lesson, you'll learn how to use lapply() and sapply(), the two most | |
| important members of R's *apply family of functions, also known as loop | |
| functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selection: 5 | |
| | |
| | 0% | |
| Missing values play an important role in statistics and data analysis. Often, | |
| missing values must not be ignored, but rather they should be carefully | |
| studied to see if there's an underlying pattern or cause for their | |
| missingness. |
NewerOlder