AntoineSoetewey / statsandr

A blog on statistics and R aiming at helping academics and professionals working with data to grasp important concepts in statistics and to apply them in R. See www.statsandr.com
http://statsandr.com/
35 stars 15 forks source link

blog/data-manipulation-in-r/ #35

Closed utterances-bot closed 3 years ago

utterances-bot commented 3 years ago

Data manipulation in R - Stats and R

See how to subset a dataset, create a new variable, recode categorical variables or labels, rename a variable, create a dataframe and deal with missing values

https://statsandr.com/blog/data-manipulation-in-r/

AntoineSoetewey commented 3 years ago

"Comment written by Cokro Darsono on June 04, 2020 07:15:16:

Dear Antoine,

How to combine the two datasets into one graphic?"

AntoineSoetewey commented 3 years ago

"Comment written by Cokro Darsono on June 04, 2020 07:15:16:

Dear Antoine,

How to combine the two datasets into one graphic?"

Comment written by Antoine Soetewey on June 04, 2020 09:18:19:

Dear Cokro,

As discussed, here is the code to plot Apple stock price and active covid19 cases together: https://gist.github.com/AntoineSoetewey/966d01bb2439ba47b1cc23ad22bb06b8 Feel free to change the stock and perhaps use a log scale for the y-axis.

Hope this helps.

Best,
Antoine