copySpecies: Copy photos of specific species

copySpeciesR Documentation

Copy photos of specific species

Description

Copy all images from a specified directory which has a certain metadata species tag to a specified directory set by user. This function is very much similar to the 'getSpeciesImages' function from the camtrapR package except you can use Windows Live Gallery tags as well as digiKam tags.

Usage

copySpecies(inDir, newDir, exifTag, species)

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. Use "Subject" for images tagged in Windows Live Gallery or and in digiKam. Other tags might be necessary for images tagged in different software. You can use the metadata function to look for different tag names.

species

character. The species tag as tagged in DigiKam or Windows Live Gallery.

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")


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