As @dvetsch75 suggests, the select()
function you are using doesn't seem to come from dplyr
as it is intended, so to avoid any possible name clash use the fully qualified function name instead. Then, provided your packages are up to date, you should see this outcome (tested on RStudio Cloud, R 4.2)
library(dplyr)
library(tidyquant)
c("BAC","NEU","ATVI") %>%
tq_get(get = "stock.prices", from = "2000-01-01") %>%
dplyr::select(symbol, date, adjusted)
#> # A tibble: 16,950 × 3
#> symbol date adjusted
#> <chr> <date> <dbl>
#> 1 BAC 2000-01-03 13.6
#> 2 BAC 2000-01-04 12.8
#> 3 BAC 2000-01-05 12.9
#> 4 BAC 2000-01-06 14.1
#> 5 BAC 2000-01-07 13.7
#> 6 BAC 2000-01-10 13.2
#> 7 BAC 2000-01-11 12.9
#> 8 BAC 2000-01-12 13.1
#> 9 BAC 2000-01-13 13.4
#> 10 BAC 2000-01-14 14.2
#> # … with 16,940 more rows
Created on 2022-06-16 by the reprex package (v2.0.1)