I have a list of several thousand stock symbols to pass through a function. However the function only accepts 200 or less symbols at a time. How do i set up the loops to pass through chunks of 200 symbols until the list is complete. Below is some loose structure i think it may look like. The function works when I pass through the manually shortened shortsymb, but I need to automate this process so it can iterate.
library(quantmod)
symbols<-read.csv("companylist.csv")
for(i in 1:end){
for(i in 1:200)
metrics <- getQuote(paste(symbols sep="", collapse=";"), what=what_metrics)
}}
shortsymb<-symbols[1:199,]