Description Usage Arguments Value Examples
View source: R/count-seasons.R
Fall, spring, summer. If ignore_summers = TRUE, but one of the termkeys is a summer, it will make the summer term collapse into the previous spring. This gives an accurate count of the number of fall and spring terms in between two termkeys.
1 | count_seasons(termkey1, termkey2, neg = TRUE, ignore_summers = FALSE)
|
termkey1 |
A Termkey (will be validated). By convention, should be earlier |
termkey2 |
A Termkey (will be validated). By convention, should be later |
neg |
Boolean: return a negative number of seasons if termkey 1 is later than termkey2, if FALSE, provide an absolute difference |
ignore_summers |
Boolean: if TRUE, count fall and spring semesters only |
Integer number of seasons between term keys
1 | count_seasons(20062, 20185)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.