Skip to content

Commit

Permalink
Update docs with pkgdev
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 31, 2024
1 parent d8adda2 commit e58c012
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 37 deletions.
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,22 @@ library(climaemet)
# See a tibble in action

aemet_last_obs("9434")
#> # A tibble: 12 × 25
#> # A tibble: 13 × 25
#> idema lon fint prec alt vmax vv dv lat dmax
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-07-31 01:00:00 0 249 7.4 2.5 111 41.7 123
#> 2 9434 -1.00 2024-07-31 02:00:00 0 249 4.6 2.4 123 41.7 143
#> 3 9434 -1.00 2024-07-31 03:00:00 0 249 4.2 1.8 99 41.7 90
#> 4 9434 -1.00 2024-07-31 04:00:00 0 249 4.1 0.9 54 41.7 133
#> 5 9434 -1.00 2024-07-31 05:00:00 0 249 3.5 2.1 101 41.7 88
#> 6 9434 -1.00 2024-07-31 06:00:00 0 249 3.4 2.5 98 41.7 100
#> 7 9434 -1.00 2024-07-31 07:00:00 0 249 2.9 1.7 84 41.7 93
#> 8 9434 -1.00 2024-07-31 08:00:00 0 249 4.7 2.7 100 41.7 110
#> 9 9434 -1.00 2024-07-31 09:00:00 0 249 5.2 2.5 96 41.7 113
#> 10 9434 -1.00 2024-07-31 10:00:00 0 249 4 2.8 97 41.7 93
#> 11 9434 -1.00 2024-07-31 11:00:00 0 249 4.3 2.7 97 41.7 110
#> 12 9434 -1.00 2024-07-31 12:00:00 0 249 5.2 2.9 101 41.7 123
#> 1 9434 -1.00 2024-07-31 06:00:00 0 249 3.4 2.5 98 41.7 100
#> 2 9434 -1.00 2024-07-31 07:00:00 0 249 2.9 1.7 84 41.7 93
#> 3 9434 -1.00 2024-07-31 08:00:00 0 249 4.7 2.7 100 41.7 110
#> 4 9434 -1.00 2024-07-31 09:00:00 0 249 5.2 2.5 96 41.7 113
#> 5 9434 -1.00 2024-07-31 10:00:00 0 249 4 2.8 97 41.7 93
#> 6 9434 -1.00 2024-07-31 11:00:00 0 249 4.3 2.7 97 41.7 110
#> 7 9434 -1.00 2024-07-31 12:00:00 0 249 5.2 2.9 101 41.7 123
#> 8 9434 -1.00 2024-07-31 13:00:00 0 249 5.4 2.1 52 41.7 98
#> 9 9434 -1.00 2024-07-31 14:00:00 0 249 7.6 3.4 115 41.7 115
#> 10 9434 -1.00 2024-07-31 15:00:00 0 249 7.5 4.7 114 41.7 105
#> 11 9434 -1.00 2024-07-31 16:00:00 0 249 7 3.1 96 41.7 103
#> 12 9434 -1.00 2024-07-31 17:00:00 0 249 5.8 4 99 41.7 88
#> 13 9434 -1.00 2024-07-31 18:00:00 0 249 5.2 2.1 97 41.7 98
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
Expand Down Expand Up @@ -172,12 +173,12 @@ knitr::kable(head(data_observation))

| idema | lon | fint | prec | alt | vmax | vv | dv | lat | dmax | ubi | pres | hr | stdvv | ts | pres_nmar | tamin | ta | tamax | tpr | stddv | inso | tss5cm | pacutp | tss20cm |
|:------|----------:|:--------------------|-----:|----:|-----:|----:|----:|---------:|-----:|:--------------------|------:|----:|------:|-----:|----------:|------:|-----:|------:|-----:|------:|-----:|-------:|-------:|--------:|
| 9434 | -1.004167 | 2024-07-31 01:00:00 | 0 | 249 | 7.4 | 2.5 | 111 | 41.66056 | 123 | ZARAGOZA AEROPUERTO | 983.6 | 28 | 0.4 | 27.4 | 1011.9 | 28.9 | 28.9 | 30.4 | 8.5 | 13 | 0 | 34.5 | 0 | 36.5 |
| 9434 | -1.004167 | 2024-07-31 02:00:00 | 0 | 249 | 4.6 | 2.4 | 123 | 41.66056 | 143 | ZARAGOZA AEROPUERTO | 983.3 | 31 | 0.4 | 26.9 | 1011.7 | 27.5 | 27.8 | 28.9 | 9.2 | 21 | 0 | 33.9 | 0 | 36.2 |
| 9434 | -1.004167 | 2024-07-31 03:00:00 | 0 | 249 | 4.2 | 1.8 | 99 | 41.66056 | 90 | ZARAGOZA AEROPUERTO | 983.3 | 34 | 0.6 | 24.9 | 1011.9 | 26.1 | 26.1 | 27.8 | 9.0 | 15 | 0 | 33.2 | 0 | 35.9 |
| 9434 | -1.004167 | 2024-07-31 04:00:00 | 0 | 249 | 4.1 | 0.9 | 54 | 41.66056 | 133 | ZARAGOZA AEROPUERTO | 983.6 | 36 | 0.4 | 23.9 | 1012.2 | 25.4 | 25.4 | 26.1 | 9.3 | 44 | 0 | 32.6 | 0 | 35.5 |
| 9434 | -1.004167 | 2024-07-31 05:00:00 | 0 | 249 | 3.5 | 2.1 | 101 | 41.66056 | 88 | ZARAGOZA AEROPUERTO | 983.9 | 40 | 0.3 | 23.1 | 1012.7 | 24.0 | 24.0 | 25.4 | 9.6 | 8 | 0 | 32.0 | 0 | 35.2 |
| 9434 | -1.004167 | 2024-07-31 06:00:00 | 0 | 249 | 3.4 | 2.5 | 98 | 41.66056 | 100 | ZARAGOZA AEROPUERTO | 984.3 | 41 | 0.3 | 25.4 | 1013.0 | 23.8 | 24.7 | 24.7 | 10.5 | 7 | 15 | 31.5 | 0 | 34.9 |
| 9434 | -1.004167 | 2024-07-31 07:00:00 | 0 | 249 | 2.9 | 1.7 | 84 | 41.66056 | 93 | ZARAGOZA AEROPUERTO | 984.6 | 38 | 0.3 | 30.5 | 1013.1 | 24.7 | 27.0 | 27.0 | 11.4 | 14 | 60 | 31.7 | 0 | 34.5 |
| 9434 | -1.004167 | 2024-07-31 08:00:00 | 0 | 249 | 4.7 | 2.7 | 100 | 41.66056 | 110 | ZARAGOZA AEROPUERTO | 984.6 | 33 | 0.7 | 33.6 | 1012.8 | 27.0 | 29.5 | 29.5 | 11.6 | 14 | 60 | 32.9 | 0 | 34.2 |
| 9434 | -1.004167 | 2024-07-31 09:00:00 | 0 | 249 | 5.2 | 2.5 | 96 | 41.66056 | 113 | ZARAGOZA AEROPUERTO | 984.5 | 30 | 0.5 | 36.5 | 1012.5 | 29.5 | 31.6 | 31.6 | 11.9 | 17 | 60 | 34.6 | 0 | 34.0 |
| 9434 | -1.004167 | 2024-07-31 10:00:00 | 0 | 249 | 4.0 | 2.8 | 97 | 41.66056 | 93 | ZARAGOZA AEROPUERTO | 984.3 | 28 | 0.6 | 39.2 | 1012.1 | 31.6 | 33.9 | 33.9 | 12.8 | 19 | 60 | 36.8 | 0 | 33.9 |
| 9434 | -1.004167 | 2024-07-31 11:00:00 | 0 | 249 | 4.3 | 2.7 | 97 | 41.66056 | 110 | ZARAGOZA AEROPUERTO | 983.7 | 24 | 0.6 | 41.0 | 1011.3 | 33.9 | 36.0 | 36.0 | 12.2 | 15 | 60 | 39.0 | 0 | 34.0 |

``` r

Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -351,7 +351,7 @@
},
"applicationCategory": "Meteorology",
"isPartOf": "https://ropenspain.es/",
"fileSize": "838.826KB",
"fileSize": "853.771KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
Binary file modified data/climaemet_9434_climatogram.rda
Binary file not shown.
Binary file modified data/climaemet_9434_temp.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"runtimePlatform": "R version 4.4.1 (2024-06-14 ucrt)",
"version": "1.3.0.9000"
},
{
Expand Down
Binary file modified man/figures/README-climatestripes-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-climatogram-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-spatial-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-windrose-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 19 additions & 16 deletions vignettes/climaemet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,25 @@ See how a `tibble` is displayed:
# See a tibble in action

aemet_last_obs("9434")
#> # A tibble: 12 × 25
#> idema lon fint prec alt vmax vv dv lat dmax ubi pres hr stdvv ts pres_nmar tamin ta tamax
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-07-31 01:00:00 0 249 7.4 2.5 111 41.7 123 ZARAGOZ… 984. 28 0.4 27.4 1012. 28.9 28.9 30.4
#> 2 9434 -1.00 2024-07-31 02:00:00 0 249 4.6 2.4 123 41.7 143 ZARAGOZ… 983. 31 0.4 26.9 1012. 27.5 27.8 28.9
#> 3 9434 -1.00 2024-07-31 03:00:00 0 249 4.2 1.8 99 41.7 90 ZARAGOZ… 983. 34 0.6 24.9 1012. 26.1 26.1 27.8
#> 4 9434 -1.00 2024-07-31 04:00:00 0 249 4.1 0.9 54 41.7 133 ZARAGOZ… 984. 36 0.4 23.9 1012. 25.4 25.4 26.1
#> 5 9434 -1.00 2024-07-31 05:00:00 0 249 3.5 2.1 101 41.7 88 ZARAGOZ… 984. 40 0.3 23.1 1013. 24 24 25.4
#> 6 9434 -1.00 2024-07-31 06:00:00 0 249 3.4 2.5 98 41.7 100 ZARAGOZ… 984. 41 0.3 25.4 1013 23.8 24.7 24.7
#> 7 9434 -1.00 2024-07-31 07:00:00 0 249 2.9 1.7 84 41.7 93 ZARAGOZ… 985. 38 0.3 30.5 1013. 24.7 27 27
#> 8 9434 -1.00 2024-07-31 08:00:00 0 249 4.7 2.7 100 41.7 110 ZARAGOZ… 985. 33 0.7 33.6 1013. 27 29.5 29.5
#> 9 9434 -1.00 2024-07-31 09:00:00 0 249 5.2 2.5 96 41.7 113 ZARAGOZ… 984. 30 0.5 36.5 1012. 29.5 31.6 31.6
#> 10 9434 -1.00 2024-07-31 10:00:00 0 249 4 2.8 97 41.7 93 ZARAGOZ… 984. 28 0.6 39.2 1012. 31.6 33.9 33.9
#> 11 9434 -1.00 2024-07-31 11:00:00 0 249 4.3 2.7 97 41.7 110 ZARAGOZ… 984. 24 0.6 41 1011. 33.9 36 36
#> 12 9434 -1.00 2024-07-31 12:00:00 0 249 5.2 2.9 101 41.7 123 ZARAGOZ… 983 22 0.9 42.9 1010. 36 37.9 37.9
#> # ℹ 6 more variables: tpr <dbl>, stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
#> # A tibble: 13 × 25
#> idema lon fint prec alt vmax vv dv lat dmax
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 9434 -1.00 2024-07-31 06:00:00 0 249 3.4 2.5 98 41.7 100
#> 2 9434 -1.00 2024-07-31 07:00:00 0 249 2.9 1.7 84 41.7 93
#> 3 9434 -1.00 2024-07-31 08:00:00 0 249 4.7 2.7 100 41.7 110
#> 4 9434 -1.00 2024-07-31 09:00:00 0 249 5.2 2.5 96 41.7 113
#> 5 9434 -1.00 2024-07-31 10:00:00 0 249 4 2.8 97 41.7 93
#> 6 9434 -1.00 2024-07-31 11:00:00 0 249 4.3 2.7 97 41.7 110
#> 7 9434 -1.00 2024-07-31 12:00:00 0 249 5.2 2.9 101 41.7 123
#> 8 9434 -1.00 2024-07-31 13:00:00 0 249 5.4 2.1 52 41.7 98
#> 9 9434 -1.00 2024-07-31 14:00:00 0 249 7.6 3.4 115 41.7 115
#> 10 9434 -1.00 2024-07-31 15:00:00 0 249 7.5 4.7 114 41.7 105
#> 11 9434 -1.00 2024-07-31 16:00:00 0 249 7 3.1 96 41.7 103
#> 12 9434 -1.00 2024-07-31 17:00:00 0 249 5.8 4 99 41.7 88
#> 13 9434 -1.00 2024-07-31 18:00:00 0 249 5.2 2.1 97 41.7 98
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
```

Note that when possible, data representing dates and numbers are converted to
Expand Down
Binary file modified vignettes/spatial-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 e58c012

Please sign in to comment.