Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andypicke committed May 8, 2024
1 parent 553b1a3 commit 4a4f4fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Get monthly electricity generation data for 2021-2023. By Default this returns d
```{r example}
library(emberr)
gen <- emberr::get_electricity_generation(temporal_resolution = "monthly", min_date = 2021, max_date = 2023)
gen <- emberr::get_ember_data(dataset = "electricity-generation", temporal_resolution = "monthly", min_date = 2021, max_date = 2023)
head(gen)
Expand All @@ -69,7 +69,7 @@ Retrieve data for just one country/region:

```{r}
df_usa <- emberr::get_electricity_generation(entity = "United States")
df_usa <- emberr::get_ember_data(entity = "United States")
str(df_usa)
Expand All @@ -79,7 +79,7 @@ You can also retrieve data for multiple countries/regions:

```{r}
df <- get_electricity_generation(min_date = 2020, entity = "United States,United Kingdom")
df <- get_ember_data(min_date = 2020, entity = "United States,United Kingdom")
str(df)
```
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ returns data for all countries/regions (“entities”).
``` r
library(emberr)

gen <- emberr::get_electricity_generation(temporal_resolution = "monthly", min_date = 2021, max_date = 2023)
gen <- emberr::get_ember_data(dataset = "electricity-generation", temporal_resolution = "monthly", min_date = 2021, max_date = 2023)
#> No encoding supplied: defaulting to UTF-8.

head(gen)
Expand Down Expand Up @@ -85,11 +85,11 @@ Retrieve data for just one country/region:

``` r

df_usa <- emberr::get_electricity_generation(entity = "United States")
df_usa <- emberr::get_ember_data(entity = "United States")
#> No encoding supplied: defaulting to UTF-8.

str(df_usa)
#> 'data.frame': 136 obs. of 8 variables:
#> 'data.frame': 153 obs. of 8 variables:
#> $ entity : chr "United States" "United States" "United States" "United States" ...
#> $ entity_code : chr "USA" "USA" "USA" "USA" ...
#> $ is_aggregate_entity : logi FALSE FALSE FALSE FALSE FALSE FALSE ...
Expand All @@ -104,10 +104,10 @@ You can also retrieve data for multiple countries/regions:

``` r

df <- get_electricity_generation(min_date = 2020, entity = "United States,United Kingdom")
df <- get_ember_data(min_date = 2020, entity = "United States,United Kingdom")
#> No encoding supplied: defaulting to UTF-8.
str(df)
#> 'data.frame': 99 obs. of 8 variables:
#> 'data.frame': 132 obs. of 8 variables:
#> $ entity : chr "United Kingdom" "United Kingdom" "United Kingdom" "United Kingdom" ...
#> $ entity_code : chr "GBR" "GBR" "GBR" "GBR" ...
#> $ is_aggregate_entity : logi FALSE FALSE FALSE FALSE FALSE FALSE ...
Expand Down

0 comments on commit 4a4f4fb

Please sign in to comment.