So I have an data table like so:
I want to create a series of plots, but don't want to do it individually each time.
I was wondering if there is a way to take the value in column 2 row 1, run a function on it and then assign that to an object by naming that object with the text in column 1 row 1 . . .
and then do this for each subsequent row without writing it out for each row
right now for each row I would do this:
ID101 <- qr_code('https://www.bbc.com/news/world-us-canada-68075637') %>%
Is there a way to write a piece of code that would take a value from column 2, run a function on it, end then assign the result to the ID in column 1?
Here I'm actually creating QR codes using the package qrcode, but that doesn't matter to my question, I just want to know if there is a way to do this for any function/plot that I need to repeat one hundred times.