Skip to content

Commit 5333b86

Browse files
committed
review readme by chatgpt
1 parent 4593d49 commit 5333b86

2 files changed

Lines changed: 51 additions & 59 deletions

File tree

README.Rmd

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,59 +41,57 @@ European Union's Horizon Europe Research and Innovation Programme (ID No 1010595
4141
<!-- community: inbo -->
4242

4343
<!-- description: start -->
44-
This repository contains scripts to create the b3data [frictionless](https://docs.ropensci.org/frictionless/) data package. This data package contains the data resources for the [b3verse](https://docs.b-cubed.eu/guides/b3verse/). The data package will be published on [Zenodo](https://zenodo.org/) from where the datasets can be imported in R using the [frictionless](https://docs.ropensci.org/frictionless/) R package.
44+
This repository contains scripts to create the b3data [frictionless](https://docs.ropensci.org/frictionless/) data package. This data package includes data resources used across the [b3verse](https://docs.b-cubed.eu/guides/b3verse/) and will be published on [Zenodo](https://zenodo.org/).
4545
<!-- description: end -->
4646

4747
This code is developed in context of **T5.5** of the [B-Cubed project](https://b-cubed.eu/).
4848

49-
### b3data data package
49+
## 📦 The `b3data` data package
5050

51-
The b3data data package is itself is available here (*URL will be provided when published*).
52-
This data package contains the data resources for the [b3verse](https://docs.b-cubed.eu/guides/b3verse/).
53-
It is created using the [frictionless](https://docs.ropensci.org/frictionless/) R package and the datasets can be imported in R using functions provided by **frictionless**.
51+
Once published, the data package will be available here:
5452

55-
**Step 1.** Load the **frictionless** R package
53+
> 🕐 *URL will be provided when available*
54+
55+
Datasets can be imported in R like this:
56+
57+
### Step 1 — Load the frictionless R package
5658

5759
```{r, echo=FALSE}
5860
# nolint start
5961
```
6062

6163
```{r}
62-
#install.packages("frictionless")
64+
# install.packages("frictionless")
6365
library(frictionless)
6466
```
6567

66-
**Step 2.** Read the descriptor file of the data package from Zenodo and look at the contents
68+
### Step 2Read the package descriptor from Zenodo
6769

68-
> This is an example based on an other data package. b3data will be published soon.
70+
> This example uses a placeholder data package; replace with the final URL when ready.
6971
7072
```{r}
7173
b3data_package <- read_package("https://zenodo.org/records/10053702/files/datapackage.json")
7274
b3data_package
7375
```
7476

75-
The following datasets are included:
76-
77-
> coming soon
78-
79-
**Step 3.** Import dataset of interest from the data package
77+
### Step 3 — Import a dataset
8078

81-
Tabular data can be imported straightforward using the `read_resource()` function.
79+
Tabular datasets can be loaded using `read_resource()`.
8280

8381
```{r}
8482
gps <- read_resource(b3data_package, "gps")
85-
gps
83+
head(gps)
8684
```
8785

88-
Other datatypes need to be read from URL using specific packages (e.g. **sf** for spatial data or **terra** for raster data).
86+
For non-tabular resources (e.g. spatial or raster data), use packages like `sf` or `terra`.
8987

90-
> example coming soon
88+
> Example coming soon.
9189
9290
```{r, echo=FALSE}
9391
# nolint end
9492
```
9593

96-
### Repo structure
94+
## 📁 Repository structure
9795

9896
```
9997
├── source ├ R markdown files

README.md

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,32 @@ Horizon Europe Research and Innovation Programme (ID No 101059592)[^7]
2626

2727
This repository contains scripts to create the b3data
2828
[frictionless](https://docs.ropensci.org/frictionless/) data package.
29-
This data package contains the data resources for the
30-
[b3verse](https://docs.b-cubed.eu/guides/b3verse/). The data package
31-
will be published on [Zenodo](https://zenodo.org/) from where the
32-
datasets can be imported in R using the
33-
[frictionless](https://docs.ropensci.org/frictionless/) R package.
34-
<!-- description: end -->
29+
This data package includes data resources used across the
30+
[b3verse](https://docs.b-cubed.eu/guides/b3verse/) and will be published
31+
on [Zenodo](https://zenodo.org/). <!-- description: end -->
3532

3633
This code is developed in context of **T5.5** of the [B-Cubed
3734
project](https://b-cubed.eu/).
3835

39-
### b3data data package
36+
## 📦 The `b3data` data package
4037

41-
The b3data data package is itself is available here (*URL will be
42-
provided when published*). This data package contains the data resources
43-
for the [b3verse](https://docs.b-cubed.eu/guides/b3verse/). It is
44-
created using the
45-
[frictionless](https://docs.ropensci.org/frictionless/) R package and
46-
the datasets can be imported in R using functions provided by
47-
**frictionless**.
38+
Once published, the data package will be available here:
4839

49-
**Step 1.** Load the **frictionless** R package
40+
> 🕐 *URL will be provided when available*
41+
42+
Datasets can be imported in R like this:
43+
44+
### Step 1 — Load the frictionless R package
5045

5146
``` r
52-
#install.packages("frictionless")
47+
# install.packages("frictionless")
5348
library(frictionless)
5449
```
5550

56-
**Step 2.** Read the data package from Zenodo and look at the contents
51+
### Step 2Read the package descriptor from Zenodo
5752

58-
> This is an example based on an other data package. b3data will be
59-
> published soon.
53+
> This example uses a placeholder data package; replace with the final
54+
> URL when ready.
6055
6156
``` r
6257
b3data_package <- read_package("https://zenodo.org/records/10053702/files/datapackage.json")
@@ -69,38 +64,37 @@ b3data_package
6964
#> Use `unclass()` to print the Data Package as a list.
7065
```
7166

72-
The following datasets are included:
73-
74-
> coming soon
67+
### Step 3 — Import a dataset
7568

76-
**Step 3.** Import dataset of interest from the data package
69+
Tabular datasets can be loaded using `read_resource()`.
7770

7871
``` r
7972
gps <- read_resource(b3data_package, "gps")
80-
gps
81-
#> # A tibble: 73,047 × 21
82-
#> `event-id` visible timestamp `location-long` `location-lat`
83-
#> <dbl> <lgl> <dttm> <dbl> <dbl>
84-
#> 1 14256075762 TRUE 2018-05-25 16:11:37 4.25 51.3
85-
#> 2 14256075763 TRUE 2018-05-25 16:16:41 4.25 51.3
86-
#> 3 14256075764 TRUE 2018-05-25 16:21:29 4.25 51.3
87-
#> 4 14256075765 TRUE 2018-05-25 16:26:28 4.25 51.3
88-
#> 5 14256075766 TRUE 2018-05-25 16:31:21 4.25 51.3
89-
#> 6 14256075767 TRUE 2018-05-25 16:36:09 4.25 51.3
90-
#> 7 14256075768 TRUE 2018-05-25 16:40:57 4.25 51.3
91-
#> 8 14256075769 TRUE 2018-05-25 16:45:55 4.25 51.3
92-
#> 9 14256075770 TRUE 2018-05-25 16:50:49 4.25 51.3
93-
#> 10 14256075771 TRUE 2018-05-25 16:55:36 4.25 51.3
94-
#> # ℹ 73,037 more rows
73+
head(gps)
74+
#> # A tibble: 6 × 21
75+
#> `event-id` visible timestamp `location-long` `location-lat`
76+
#> <dbl> <lgl> <dttm> <dbl> <dbl>
77+
#> 1 14256075762 TRUE 2018-05-25 16:11:37 4.25 51.3
78+
#> 2 14256075763 TRUE 2018-05-25 16:16:41 4.25 51.3
79+
#> 3 14256075764 TRUE 2018-05-25 16:21:29 4.25 51.3
80+
#> 4 14256075765 TRUE 2018-05-25 16:26:28 4.25 51.3
81+
#> 5 14256075766 TRUE 2018-05-25 16:31:21 4.25 51.3
82+
#> 6 14256075767 TRUE 2018-05-25 16:36:09 4.25 51.3
9583
#> # ℹ 16 more variables: `bar:barometric-pressure` <dbl>,
9684
#> # `external-temperature` <dbl>, `gps:dop` <dbl>, `gps:satellite-count` <dbl>,
9785
#> # `gps-time-to-fix` <dbl>, `ground-speed` <dbl>, heading <dbl>,
9886
#> # `height-above-msl` <dbl>, `location-error-numerical` <dbl>,
9987
#> # `manually-marked-outlier` <lgl>, `vertical-error-numerical` <dbl>,
100-
#> # `sensor-type` <chr>, `individual-taxon-canonical-name` <chr>, …
88+
#> # `sensor-type` <chr>, `individual-taxon-canonical-name` <chr>,
89+
#> # `tag-local-identifier` <chr>, `individual-local-identifier` <chr>, …
10190
```
10291

103-
### Repo structure
92+
For non-tabular resources (e.g. spatial or raster data), use packages
93+
like `sf` or `terra`.
94+
95+
> Example coming soon.
96+
97+
## 📁 Repository structure
10498

10599
├── source ├ R markdown files
106100
│ └── R ├ R scripts

0 commit comments

Comments
 (0)