Generate Rmd file for analysis and correct choose results in 06_common.md #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I want to learn R markdown from the LittleInferenceBook repo, but I find that the md files are helpless in this regard. By modifying the LittleInferenceBook.md, the corresponding Rmd files can be generated, and they are really handy for learning R markdown syntax and format. I'd like to share them with other students.
I am afraid that there is a trivial mistake in 06_common.md: it says choose 0, 1 and n - 1 from n are all 1, but I think choose 0 from n is definitely 1, while choose 1 and n - 1 from n should be n. You can tell it in R: choose(10, 1) and choose(10, 9) are all 10.