Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuroShepherd committed Jul 8, 2024
1 parent 497bc29 commit d114f50
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 6 deletions.
50 changes: 47 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
<!-- badges: end -->

The goal of gradecast is to ...
The goal of gradecast is to allow students to calculate a possible range of final grades for their academic program based on their current grades, quantity of completed ECTS points, and the number of remaining ECTS points. The package is designed to be used in a Shiny app, where the user can input their data and see the possible range of final grades in a plot.

## Installation

Expand All @@ -31,10 +31,54 @@ devtools::install_github("NeuroShepherd/gradecast")

## Example

This is a basic example which shows you how to solve a common problem:
### Calculating Range of Grades


```{r example}
library(gradecast)
## basic example code
# Example of completing 1 semester i.e. 30 ECTS with a 1.5 grade (German)
# and having 60 ECTS left to complete the program. Uses the standard German
# grading scale of 1 to 5 (1 being the best grade and 5 being the worst).
calculate_grade_range(
completed_ects = 30,
current_grade = 1.5,
remaining_ects = 60,
max_passing_grade = 1,
min_passing_grade = 5
)
```

### Projection plot

```{r}
# The results can be projected in a plot
plot_grade_range(
completed_ects = 30,
current_grade = 1.5,
remaining_ects = 60,
max_passing_grade = 1,
min_passing_grade = 5
)
```

### Shiny Application

```{r, eval=FALSE}
run_app()
```


### Misc: Grade Conversion

The package also provides a function to convert grades between different grading scales, in particular it supports the conversion between the German and US grading scales (affectionaly known as "freedom units" here.)

```{r}
grade_in_germany <- 1.3
convert_to_freedom_units(grade_in_germany)
```

60 changes: 57 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
<!-- badges: start -->
<!-- badges: end -->

The goal of gradecast is to …
The goal of gradecast is to allow students to calculate a possible range
of final grades for their academic program based on their current
grades, quantity of completed ECTS points, and the number of remaining
ECTS points. The package is designed to be used in a Shiny app, where
the user can input their data and see the possible range of final grades
in a plot.

## Installation

Expand All @@ -20,9 +25,58 @@ devtools::install_github("NeuroShepherd/gradecast")

## Example

This is a basic example which shows you how to solve a common problem:
### Calculating Range of Grades

``` r
library(gradecast)
## basic example code

# Example of completing 1 semester i.e. 30 ECTS with a 1.5 grade (German)
# and having 60 ECTS left to complete the program. Uses the standard German
# grading scale of 1 to 5 (1 being the best grade and 5 being the worst).
calculate_grade_range(
completed_ects = 30,
current_grade = 1.5,
remaining_ects = 60,
max_passing_grade = 1,
min_passing_grade = 5
)
#> best_outcome worst_outcome
#> 1.166667 3.833333
```

### Projection plot

``` r
# The results can be projected in a plot

plot_grade_range(
completed_ects = 30,
current_grade = 1.5,
remaining_ects = 60,
max_passing_grade = 1,
min_passing_grade = 5
)
```

<img src="man/figures/README-unnamed-chunk-2-1.png" width="100%" />

### Shiny Application

``` r
run_app()
```

### Misc: Grade Conversion

The package also provides a function to convert grades between different
grading scales, in particular it supports the conversion between the
German and US grading scales (affectionaly known as “freedom units”
here.)

``` r

grade_in_germany <- 1.3

convert_to_freedom_units(grade_in_germany)
#> [1] 3.7
```
Binary file added man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d114f50

Please sign in to comment.