Path to access Github file 2

Hi. I am still having trouble understanding the path. The following gives me an error message 404 not found, although it looks like the path when I hover over the filename at Machine-Learning-with-R-Third-Edition/Chapter06 at master · PacktPublishing/Machine-Learning-with-R-Third-Edition · GitHub. Thank you.

df <- read.csv(
"GitHub - PacktPublishing/Machine-Learning-with-R-Third-Edition: Machine-Learning-with-R-Third-Edition, published by Packt
blob/master/Chapter06/challenger.csv")

Hi,

If you hit the Raw button after you click into the file on the top right, then you can see this link:

> df <- read.csv("https://raw.githubusercontent.com/PacktPublishing/Machine-Learning-with-R-Third-Edition/master/Chapter06/challenger.csv")
> head(df)
  distress_ct temperature field_check_pressure flight_num
1           0          66                   50          1
2           1          70                   50          2
3           0          69                   50          3
4           0          68                   50          4
5           0          67                   50          5
6           0          72                   50          6

Does that do it?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.