In R studio I am currently using the package quantmod to pull yahoo finance data. I found quantmod because someone recommended on: How to scrape key statistics from Yahoo! Finance with R? in place of scraping. I am trying to pull Book value per share (BVPS) data.
This could be directly with
library(quantmod)
getQuote("AAPL",what=yahooQF(c("Book Value Per Share")))
it throws this ERROR: Error in `[.data.frame`(sq, , "regularMarketTime") : undefined columns selected
I could alternatively calculate it myself if I could pull book value and preferred stock but
getQuote("AAPL",what=yahooQF(c("Book Value")))
throws the same error. So I am at a lose of what to do. Are these errors with quantmod or should I just be learning how to pull from the website myself and not using quantmod?