file_metadata: Function to extract file metadata with 'exiftool'.

View source: R/file_metadata.R

file_metadataR Documentation

Function to extract file metadata with exiftool.

Description

file_metadata uses Phil Harvey's Perl exiftool to extract a file's metadata and then formats the output into a table which can be conveniently used within R.

Usage

file_metadata(file, progress = FALSE)

Arguments

file

A vector of files to extract metadata from.

progress

Should a progress bar be displayed?

Details

exiftool is called as a system command and this function has not been tested on other non-Debian systems. I do not know how exiftool is implemented on Windows or macOS and therefore I cannot guarantee that this function will work.

file_metadata can be useful for media files and the exploration of metadata.

All variables which are supported and returned by exiftool will be present. Watch out for very large numbers of variables when imputing large XML or JSON documents with a large numbers of nested elements.

Author(s)

Stuart K. Grange

See Also

exiftool

Examples


## Not run: 
data_metadata <- file_metadata("music.mp3")

## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.