I want to use R to organize (sort/move) over 1000 photos into 65 different site-specific folders. I have a csv file that contains the photo ID and the folder that it should go in. I used the csv file to create all the folders I need, which was pretty simple (see below), but I am lost on what to do next to actually move the photos to the appropriate folders.
for (i in 1:length(tracts)) {
dir.create(file.path(photo_directory, tracts[i]))
}
There appears to be many ways to go about it, such as lapply, by, for loops, etc. Thanks in advance!