Rstudio Import Dataset function produces different result to Preview

139 Views Asked by At

The following code was automatically generated in the RStudio "Import Dataset" function. However, when I hit the Import button, I got different result. The "Data Preview" section of Import Dataset recognised my login credential and returned 10yr data. But when it was imported, it didn't recognise the login credential and returned 5yr data. Any way to resolve this please so I can get the same result as the Preview when importing data?

library(readr)
ReportProcess4CSV <- 
read_csv("http://financials.morningstar.com/ajax/ReportProcess4CSV.html?reportType=is&period=12&dataType=A&order=asc&columnYear=10&rounding=3&denominatorView=raw&t=MSFT", 
skip = 1)
View(ReportProcess4CSV)
0

There are 0 best solutions below