-
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
Jingru Zhang-class-activity-2 #4
base: master
Are you sure you want to change the base?
Conversation
Dear Aidi, Anna and Professor Lang, Thank you for the class and I look forward to your comments and suggestions. Best regards, |
Hi Jingru, can you upload the RMardown (.Rmd) file as well? |
Hi Anna, I have uploaded my file in Rmarkdown. Thank you so much for your comments and suggestions. Best regards, |
Hi Anna,
Thank you for the notification. I have uploaded my Rmarkdown version of
file and please have a look. Thank you again for the comments and
suggestions.
Best regards,
Jingru Zhang
…On Tue, Oct 1, 2019 at 11:46 AM Anna Lizarov ***@***.***> wrote:
Hi Jingru, can you upload the RMardown (.Rmd) file as well?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=ANDKVF7DII3JGIU6RA3EABLQMNWGFA5CNFSM4I4DTDS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEABX2SQ#issuecomment-537099594>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANDKVFZZXXGRNFYCE55IG4DQMNWGFANCNFSM4I4DTDSQ>
.
|
SD1 <- data.frame( | ||
score = round(rnorm(pmin(100:1, 100), 75, 8)), | ||
groups = sample(c("sport", "music", "nature", "literature"), | ||
size = 4, replace = FALSE, prob = NULL)) |
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.
Try changing the size
from 4 to a 100 and set replace
to TRUE to randomize
|
||
``` | ||
|
||
|
||
8. R contains several inbuilt data sets, one of these in called AirPassengers. Plot a line graph of the the airline passengers over time using this data set. | ||
|
||
```{r} | ||
|
||
plot(AirPassengers,xlab="Date", ylab = "Passenger numbers (1000's)",main="Air Passenger numbers from 1949 to 1961") |
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.
You can also use plot.ts()
.
iris | ||
SD4 <- iris[, 1:4] | ||
pairs(SD4) | ||
# Relationships between Sepal.Length and Petal.Length, Sepal.Length and Petal.Width, Petal.Length and Petal.Width are appropraiet to run correlations on. | ||
``` | ||
|
||
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. |
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.
Overall, good work!
Jingru Zhang-class-activity-2