When to use mapply() over sapply()

When and how to use mapply() Use mapply() when you need to pass more than one (multiple) vector to sapply(). Take for example, the two vectors .url and .destfile which contain url download files and file destinations, respectively. We want to use download.file() to download the files in .url to the file destinations in .destfile. We can use: While […]

Read more "When to use mapply() over sapply()"