Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some suggested updates to PR #65 #67

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/generate_habitatmap_stdized/20_check_result.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,24 @@ nrow(check_polygon_id_polygons) == 0
nrow == nrow(pol)
```


- Is the CRS conform EPSG:31370?

```{r}
st_crs(pol) == st_crs(31370)
```

- Is phab always between 0 and 100?

```{r}
all(between(types$phab, 0, 100))
```

- Is the primary key unique?

```{r}
types %>%
select(polygon_id, type, certain) %>%
duplicated() %>%
negate(any)(.)
```

Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ AutoAppendNewline: Yes
StripTrailingWhitespace: Yes

BuildType: Website

UseNativePipeOperator: No
5 changes: 0 additions & 5 deletions src/generate_habitatmap_stdized/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ output:
---

```{r setup, include=FALSE}

options(stringsAsFactors = FALSE,
scipen = 999,
digits = 15)

renv::restore()
library(sf)
library(tidyverse)
Expand Down