-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed class activity 2 (Timothy Lee) #3
base: master
Are you sure you want to change the base?
Conversation
Finished the questions, may improve and update.
Committing completed Rmd file and its associated knitted html file
|
||
|
||
studentPerformance = rnorm(100, 75, 15) | ||
studentPerformance[studentPerformance > 100] = 100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an another way of setting maximum and minimum values with a single line of code. round(pmax(1, pmin(100, rnorm(n=100, mean=75, sd=15))))
``` | ||
|
||
10. Finally use the knitr function to generate an html document from your work. If you have time, try to change some of the output using different commands from the RMarkdown cheat sheet. | ||
|
||
*I presume this just means press "knit"?* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way: render("nameofthefile.Rmd", output_format="html_document")
``` | ||
|
||
10. Finally use the knitr function to generate an html document from your work. If you have time, try to change some of the output using different commands from the RMarkdown cheat sheet. | ||
|
||
*I presume this just means press "knit"?* | ||
|
||
11. Commit, Push and Pull Request your work back to the main branch of the repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job overall!
The updated class-activity-2.Rmd file and its associated .html file are my response for this class activity.