View source: R/file_metadata.R
file_metadata | R Documentation |
exiftool
.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.
file_metadata(file, progress = FALSE)
file |
A vector of files to extract metadata from. |
progress |
Should a progress bar be displayed? |
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.
Stuart K. Grange
## Not run:
data_metadata <- file_metadata("music.mp3")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.