Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
thiyangt committed Jun 5, 2023
1 parent 1396062 commit 29f09ae
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Check out the website at https://denguedatahub.netlify.app/

You can install the development version of denguedatahub from [GitHub](https://github.com/) with:

```r
install.packages("denguedatahub")
```

``` r
# install.packages("devtools")
devtools::install_github("thiyangt/denguedatahub")
Expand All @@ -37,6 +41,7 @@ devtools::install_github("thiyangt/denguedatahub")
This is a basic example which shows you how to solve a common problem:

```{r example}
library(tsibble)
library(denguedatahub)
head(level_of_risk)
```
Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Check out the website at <https://denguedatahub.netlify.app/>
You can install the development version of denguedatahub from
[GitHub](https://github.com/) with:

``` r
install.packages("denguedatahub")
```

``` r
# install.packages("devtools")
devtools::install_github("thiyangt/denguedatahub")
Expand All @@ -29,6 +33,12 @@ devtools::install_github("thiyangt/denguedatahub")
This is a basic example which shows you how to solve a common problem:

``` r
library(tsibble)
#>
#> Attaching package: 'tsibble'
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, union
library(denguedatahub)
head(level_of_risk)
#> # A tibble: 6 × 3
Expand All @@ -46,9 +56,9 @@ head(level_of_risk)

``` r
srilanka_weekly_data
#> # A tibble: 21,960 × 6
#> # A tibble: 21,934 × 6
#> year week start.date end.date district cases
#> <dbl> <dbl> <date> <date> <chr> <dbl>
#> * <dbl> <dbl> <date> <date> <chr> <dbl>
#> 1 2006 52 2006-12-23 2006-12-29 Colombo 71
#> 2 2006 52 2006-12-23 2006-12-29 Gampaha 12
#> 3 2006 52 2006-12-23 2006-12-29 Kalutara 12
Expand All @@ -59,7 +69,7 @@ srilanka_weekly_data
#> 8 2006 52 2006-12-23 2006-12-29 Hambanthota 1
#> 9 2006 52 2006-12-23 2006-12-29 Matara 11
#> 10 2006 52 2006-12-23 2006-12-29 Jaffna 0
#> # ℹ 21,950 more rows
#> # ℹ 21,924 more rows
```

## World
Expand Down
26 changes: 26 additions & 0 deletions data-raw/issues.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
load("~/packages/denguedatahub/data/americas_annual_data.rda")
americas_annual_data

load("~/packages/denguedatahub/data/cdc_usa_dengue_infection.rda")
cdc_usa_dengue_infection

load("~/packages/denguedatahub/data/china_annual_data.rda")
china_annual_data

load("~/packages/denguedatahub/data/india_annual_data.rda")
india_annual_data

load("~/packages/denguedatahub/data/level_of_risk.rda")
level_of_risk

load("~/packages/denguedatahub/data/philippines_daily_data.rda")
philippines_daily_data

load("~/packages/denguedatahub/data/singapore_weekly_data.rda")
singapore_weekly_data

load("~/packages/denguedatahub/data/srilanka_weekly_data.rda")
srilanka_weekly_data

load("~/packages/denguedatahub/data/world_annual.rda")
world_annual

0 comments on commit 29f09ae

Please sign in to comment.