copySpByYear | R Documentation |
Copy all images from a directory which has a certain metadata tag and from a certain year as specified by the user. This function is very much similar to the getSpeciesImages function from the camtrapR package except you can specify which year the images are from and it can use Windows Live Gallery tags as well as digiKam tags.
copySpByYear(inDir, newDir, exifTag, species, year)
inDir |
character. The directory where all the images are saved in. |
newDir |
character. The directory where you would like to copy your images to. |
exifTag |
character. The name of the species tag column. For images tagged in Windows Live Gallery use "Subject", and for images tagged in digiKam use "HierarchicalSubject" as the input argumenets. Actually, now after I have cheanged the code to include digiKam, I think "Subject" might just work for both... *palm to face |
species |
character. The species tag as tagged in Windows Live Gallery. |
year |
integer. The year from which you would like the images from. |
Copies all images according to the specified arguments (species, year) to a new directory as chosen by the user.
Philip Faure, philip.faure13@gmail.com
copySpByYear(inDir = "/Users/philipfaure/Desktop/testSample", newDir = "/Users/philipfaure/Desktop/testOutput", exifTag = "Subject", species = "Leopard", year = 2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.