View source: R/datasets_findingemo.R
| check_findingemo_quality | R Documentation |
Checks the quality and completeness of a downloaded FindingEmo dataset, reporting on file availability, image accessibility, and potential issues.
check_findingemo_quality(data_dir, check_images = FALSE, sample_size = 10)
data_dir |
Character. Directory containing the FindingEmo dataset. |
check_images |
Logical. Whether to verify image file accessibility (default: FALSE, as this can be slow). |
sample_size |
Integer. If check_images is TRUE, number of images to sample for verification (default: 10). |
A list containing:
structure: Dataset structure type ("standard" or "flat")
files_found: List of available files
annotations_count: Number of annotations
urls_count: Number of image URLs
images_count: Number of downloaded images
completeness: Percentage of images successfully downloaded
image_check: Results of image accessibility check (if performed)
## Not run:
# Check dataset quality
quality_report <- check_findingemo_quality("./findingemo_data")
print(quality_report)
# Check with image verification
quality_report <- check_findingemo_quality(
data_dir = "./findingemo_data",
check_images = TRUE,
sample_size = 5
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.