forked from DataScienceSpecialization/courses
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DataScienceSpecialization#11 from rdpeng/master
More RR stuff
- Loading branch information
Showing
9 changed files
with
107 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
add2 <- function(x, y) { | ||
x + y | ||
} | ||
|
||
above10 <- function(x) { | ||
use <- x > 10 | ||
x[use] | ||
} | ||
|
||
above <- function(x, n) { | ||
use <- x > n | ||
x[use] | ||
} | ||
|
||
above <- function(x, n = 10) { | ||
use <- x > n | ||
x[use] | ||
} | ||
|
||
columnmean <- function(x) { | ||
nc <- ncol(x) | ||
means <- numeric(nc) | ||
for(i in seq_len(nc)) { | ||
means[i] <- mean(x[, i]) | ||
} | ||
means | ||
} | ||
|
||
columnmean <- function(x, removeNA = TRUE) { | ||
nc <- ncol(x) | ||
means <- numeric(nc) | ||
for(i in seq_len(nc)) { | ||
means[i] <- mean(x[, i], na.rm = removeNA) | ||
} | ||
means | ||
} |
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
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
Binary file added
BIN
+922 KB
05_ReproducibleResearch/ReproducibleResearchConcepts/ReproResearch.pdf
Binary file not shown.
Binary file modified
BIN
+4.41 KB
(100%)
05_ReproducibleResearch/ReproducibleResearchConcepts/ReproResearch.pptx
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Reproducible Research: Week 1 | ||
|
||
I'm very excited to start Reproducible Research and I hope you are too. Reproducible research is the idea that for any data analysis or research product, the data and the computer code that went into doing that analysis is available to others so that they might examine what you've done and reproduce your findings. This idea is becoming increasingly important in the era of "Big Data" where data analyses are become more and more complicated and difficult to describe in plain language. This course will cover some of the tools that you can use to make your data analyses reproducible. | ||
|
||
As of now the course web site on Coursera is open and you are free to start watching lecture videos, take the quizzes, and look at the first programming assignment. As you browse the course web site, please make sure to read through the <b>syllabus</b> which contains important information about the grading policy for quizzes and programming assignments as well as the course schedule. | ||
|
||
The primary way to interact with me in this course is through the <b>discussion forums</b>. Here, you can start new threads by asking questions or you can respond to other people's questions. If you have a question about any aspect of the course, I strongly suggest that you search through the discussion boards first to see if anyone as already asked that question. If you see something similar to what you want to ask, you should up-vote that question using the up-arrow button rather than asking your question separately. The more votes a question or comment gets, the more likely it is that I will see it and be able to respond quickly. Of course, if you don't see a question similar to the one you want to ask, then you should definitely start a new thread on the appropriate forum. | ||
|
||
This week will cover the basic ideas of reproducible research since they may be unfamiliar to some of you. We also cover structuring and organizing a data analysis to help make it more reproducible. I recommend that you watch the videos in the order that they are listed on the web page, but watching the videos out of order isn't going to ruin the story. For each lecture video you can download a separate PDF document of the slides (the demonstration videos don't have slides associated with them). | ||
|
||
Watching the videos on the Coursera web site is the best way to watch the lectures. However, there are alternative ways to view the lectures if that suits you. You can download the lecture video MP4 files and watch them locally on your computer. | ||
|
||
I hope you enjoy the class. I anticipate a fun four weeks! | ||
|
||
Roger Peng and the Data Science Team | ||
|
||
--- | ||
|
||
## Reproducible Research: Week 2 | ||
|
||
Today marks the beginning of Week 2 of Reproducible Research. This week we cover some of the core tools for developing reproducible documents. We cover the literate programming tool knitr and show how to integrate it with Markdown to publish reproducible web documents. This week also introduces the first peer assessment which will require you to write up a reproducible data analysis using knitr. | ||
|
||
Roger Peng and the Data Science Team | ||
|
||
--- | ||
|
||
## Reproducible Research: Week 3 | ||
|
||
|
||
--- | ||
|
||
## Reproducible Research: Week 4 | ||
|
||
|
||
--- |
Binary file not shown.
Binary file not shown.
Binary file not shown.