Nothing
Code
progression_ratios(as.list(fx))
Condition
Error in `progression_ratios()`:
! `data` must be a data frame.
x You supplied a list.
Code
progression_ratios(fx, year = "year", grade = "year")
Condition
Error in `progression_ratios()`:
! `year`, `grade`, and `enrollment` must be distinct non-missing character scalars.
x Each argument must select exactly one different column in `data`.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The enrollment column of `data` must be numeric.
x enrollment is <character>.
Code
progression_ratios(data.frame(a = 1))
Condition
Error in `progression_ratios()`:
! `data` is missing required columns: year, grade, and enrollment.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! Cannot compute progression ratios without consecutive years.
x `data` has no adjacent year pair.
i Years present: 2021 and 2023.
Code
invisible(progression_ratios(history))
Condition
Warning:
Historical years are not consecutive.
i Only adjacent-year transitions will be used.
! Gap between observed years: "2021 -> 2023".
Code
invisible(progression_ratios(history))
Condition
Warning:
Historical years are not consecutive.
i Only adjacent-year transitions will be used.
! Gaps between observed years: "2020 -> 2022" and "2023 -> 2025".
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! `data` must have one row per grade per year.
x Found duplicate (grade, year) row.
i Aggregate or de-duplicate before calling `progression_ratios()`.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The enrollment column of `data` must be non-negative.
x Found 1 negative value.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The enrollment column of `data` must contain finite values or NA.
x Found 1 non-finite value.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! `data` must contain at least 2 grades to compute progression ratios.
x The grade column has 1 grade.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The grade column of `data` must not contain missing values.
x Found 9 missing values.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The year column of `data` must be coercible to finite integers.
x Found 1 invalid value.
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The year column of `data` must be coercible to finite integers.
x Found 1 invalid value.
Code
progression_ratios(enrollcast_fixture(), method = "mean", weights = 1:2)
Condition
Error in `progression_ratios()`:
! `weights` may only be supplied for `method = "weighted"`.
Code
progression_ratios(enrollcast_fixture(), method = "weighted", weights = c(1, -1))
Condition
Error in `progression_ratios()`:
! `weights` must be numeric, finite, non-missing, and non-negative.
Code
progression_ratios(enrollcast_fixture(), method = "weighted", weights = c(0, 0))
Condition
Error in `progression_ratios()`:
! `weights` must have a positive sum.
Code
progression_ratios(enrollcast_fixture(), n_years = 0)
Condition
Error in `progression_ratios()`:
! `n_years` must be a single positive integer.
x You supplied a number.
Code
progression_ratios(fx)
Condition
Warning:
1 progression ratio is infinite or NaN.
! A feeder grade had zero enrollment in at least one transition.
Output
grade_from grade_to ratio
1 K 1 Inf
2 1 2 0.9678363
Code
progression_ratios(fx)
Condition
Error in `progression_ratios()`:
! The grade column of `data` must not contain missing values.
x Found 1 missing value.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.