Learn R Programming

ankiR (version 0.6.0)

anki_compare_periods: Compare two time periods

Description

Compare study statistics between two time periods.

Usage

anki_compare_periods(
  path = NULL,
  profile = NULL,
  period1 = NULL,
  period2 = NULL,
  period_names = c("Period 1", "Period 2")
)

Value

A tibble comparing the two periods

Arguments

path

Path to collection.anki2 (auto-detected if NULL)

profile

Profile name (first profile if NULL)

period1

First period as c(start_date, end_date)

period2

Second period as c(start_date, end_date)

period_names

Names for the periods (default: "Period 1", "Period 2")

Examples

Run this code
if (FALSE) {
# Compare this month vs last month
anki_compare_periods(
  period1 = c("2024-01-01", "2024-01-31"),
  period2 = c("2024-02-01", "2024-02-29"),
  period_names = c("January", "February")
)
}

Run the code above in your browser using DataLab