View source: R/processDirectory.R
Process a classification directory applying a function to every tif file it belongs. For each file, a new file in the output directory will be created with the result of a user-defined processing function.
1 | processDirectory(inputDir, outputDir, whatToDo, overwrite = FALSE)
|
inputDir |
A string with the input directory path. |
outputDir |
A string with the output directory path. |
whatToDo |
A function that takes one or two arguments. The first argument is the file name. The second one (optional) is a number with the year related to the file name. The year is extracted from the file name. It is represented as the last four characters before the file extension. |
overwrite |
Should the output be overwritten? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.