Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

How do I turn a series of IDs into corresponding URLs?

$
0
0

So I have a list of 1350 IDs from the RePEc database that look like this:

repec_id <- c("RePEc:bep:uomlwp:umichlwps-1003", "RePEc:hal:wpaper:hal-02187883", "RePEc:hal:journl:hal-02184200")

Each ID matches to a webpage. you get to it by removing the data before the first colon (as well as the first colon itself) then replacing the following colons with "/" and adding ".html" at the end. I want to get a list of these websites. In other words, I want my output to look like this:

links <- c("https://ideas.repec.org/p/bep/uomlwp/umichlwps-1003.html", "https://ideas.repec.org/p/hal/wpaper/hal-02187883.html", "https://ideas.repec.org/p/hal/journl/hal-02184200.html")

Does anyone know how I do this? I'm a bit lost. Thank you in advance for your help!


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>