copySpByYear: Copy photos of specific species from specific year

Description Usage Arguments Value Author(s) Examples

View source: R/copySpByYear.R

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

1
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 the images according to the specified arguments (species, year) to a new directory as chosen by the user.

Author(s)

Philip Faure, [email protected]

Examples

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

PhilipFaure/metadataTools documentation built on Oct. 1, 2018, 7:21 p.m.