Skip to contents

Calculates percentile-based benchmark scores for a single artwork compared to the artist's other artworks.

Usage

.calc_benchmarks(artist, artwork, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

artwork

Character. Artwork UUID (format: "99xxxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

List with time_effort, skill_artistry, complex_detail scores. Each contains score, percentile, components (named vector), and confidence.