copySpByYear: Copy photos of specific species from specific year

copySpByYearR Documentation

Copy photos of specific species from specific year

Description

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.

Usage

copySpByYear(inDir, newDir, exifTag, species, year)

Arguments

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.

Value

Copies all images according to the specified arguments (species, year) to a new directory as chosen by the user.

Author(s)

Philip Faure, philip.faure13@gmail.com

Examples

copySpByYear(inDir   = "/Users/philipfaure/Desktop/testSample",
             newDir  = "/Users/philipfaure/Desktop/testOutput",
             exifTag = "Subject",
             species = "Leopard",
             year    = 2016)


PhilipFaure/metadataTools documentation built on Dec. 11, 2022, 9:09 p.m.