Hello community, I'm a college student currently taking up Rstudio as a pre-requisite course, so I am very new to R studio. I followed my lecturer's slide and entered the prompt but I would either get null in environment or conflicted packages under console when i try to run/knit. Please help as my lecturer isnt giving me any help and tells me it's in my spelling but I followed the prompt step by step and its killing me how it's not working.
I keep getting null in my environment when i try to get stocks for the prompt below.
library(tidyverse)
library(tidyquant)
stocks <- tq_get(c("NFLX" , "MCD"), get = "stock.prices", from = "2019-01-01")
the examples with the from parameter also have the to parameter representing the end date.
I would try stocks <- tq_get(c("NFLX" , "MCD"), get = "stock.prices")
and/or stocks <- tq_get(c("NFLX" , "MCD"), get = "stock.prices", from = "2019-01-01", to = "2020-01-01")
It is expected to see conflicts when loading the tidyverse and tidyquant packages. You're just being told that some functions have been overridden by functions with the same name from another package, for example, as.Date() would have used base::as.Date() but is now zoo::as.Date(). This is just a FYI, not an error.
stocks <-tq_get(c("NFLX", "MCD"), get = "stock.prices", from = "2019-01-10")
should work. What happens when you highlight just that line and press "Run Selected LIne(s)"?