Importing a data set is not working well. Imported the dataset by selecting "From text (readr)" which I believe accesses the CSV importer. I cannot access the data.
This is what I get after importing the data:
ps3prob2data <- read_csv("https://ocw.mit.edu/ans7870/18/18.05/s14/r-code/ps3prob2data.r")
curl
package not installed, falling back to using url()
Parsed with column specification:
cols(
getprob2data = function()
= col_character()
)
Warning: 1 parsing failure.
row # A tibble: 1 x 5 col row col expected actual file expected actual 1 2 NA 1 columns 5000 colu~ 'ocw.mit.edu/ans7870/18/18.05/s14~ file # A tibble: 1 x 5
Note that I had to remove the https:// because newbies cannot have more than 2 links in their post.
Warning message:
In rbind(names(probs), probs_f) :
number of columns of result is not a multiple of vector length (arg 2)
When looking at the original dataset, there is a long gap between the "{x=c( " and the first datum...is this the problem? How do I rectify it?
System Information:
- RStudio Edition: Desktop running on HP surface 4 (64-bit)
- RStudio Version: Version 1.1.456 (from "About RStudio")
- OS Version: Windows 10 Pro
- R Version: 3.5.1
Referred here from support.rstudio.com