Skip to contents

Convert raw review statistics from wk_review_statistics() into a formatted data frame with subject information for easier analysis.

Usage

wk_format_review_statistics(
  review_stats,
  include_subject_details = TRUE,
  reload = FALSE
)

Arguments

review_stats

List returned from wk_review_statistics()

include_subject_details

Logical indicating whether to include subject characters and meanings (default: TRUE)

reload

Logical indicating whether to reload subjects data from API (default: FALSE)

Value

Data frame with columns: subject_id, characters, meanings, level, object_type, meaning_correct, meaning_incorrect, meaning_percentage, reading_correct, reading_incorrect, reading_percentage, current_streak_meaning, max_streak_meaning, current_streak_reading, max_streak_reading, created_at, last_updated

Examples

if (FALSE) { # \dontrun{
# Get raw review statistics
stats <- wk_review_statistics()

# Format them for easier viewing
formatted_stats <- wk_format_review_statistics(stats)
head(formatted_stats)

# Without subject details (faster)
basic_stats <- wk_format_review_statistics(stats, include_subject_details = FALSE)
} # }