Thank you for your response.
I needed to create a loop for google trends search on symptoms of covid , so that is the loop named us.symb 1. From the trend search I took out the data frame called interest over time and named it symb_time1 and found the mean of the coulumn hits from the symb_time 1 data.frame and called that avg.hits.symb1. But I keep on getting errors when I run them.
I needed to create a loop for google trends search on symptoms of covid , so that is the loop named us.symb 1
Why? Serious question, it is often easier and better not to use loops in R if it can be avoided. Can you supply us with a link to the google data or, perhaps better yet, a sample of the data you are working with? A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need.
I needed to create a loop for google trends search on symptoms of covid , so that is the loop named us.symb 1.
As far as I am aware you cannot name a loop in R
What this is doing is setting up three empty lists, each with 15 sub-lists into which you can pack whatever you want.