In this video, you are going to learn:
0:00 create a new R script
0:36 first method of preparing a dataset in R: type and prepare data information directly
3:36 draw a scatterplot and fit a linear regression model
6:35 import a dataset from csv or excel file
9:47 fit a linear model add the regression line to the scatterplot.
The birds.csv data can be downloaded from here: https://www.dropbox.com/s/8i8bkl5zb76m93e/birds.csv?dl=0
R code for this video can be found here: https://github.com/yz-DataScience/RforYoutubevideos/blob/main/R%20code%20on%20creating%20datasets.R
You may find the playlist on R for data science book club here ( I have been recording the videos according to a popular book): https://youtube.com/playlist?list=PLKNR1HvYSio7IaKu2vGkNJ1_jGNYiJPmT
You may set the video speed to 1.25 or 1.5 to make the video go faster by clicking the setting from the bottom right of the video, and set the speed to 1.25 or 1.5.
You need to install R and RStudio before you use RStudio. Follow this instruction here:
https://github.com/yz-DataScience/R-for-data-science/blob/main/R%20and%20RStudio%20Installation%20file.pdf