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 eea_cell_codes from baseline are corrupted #123

Open
SanderDevisscher opened this issue Dec 4, 2023 · 2 comments
Open

Some eea_cell_codes from baseline are corrupted #123

SanderDevisscher opened this issue Dec 4, 2023 · 2 comments
Assignees
Labels

Comments

@SanderDevisscher
Copy link
Contributor

SanderDevisscher commented Dec 4, 2023

In the current version of the baseline (classes cube on zenodo) there are some eea_cell_codes that got corrupted, For example 1kmE-1472N1205.

This issue causes this part of the code to produce the error below:

```{r extract_x_y_baseline}
df_bl_xy <-
df_bl %>%
tidylog::distinct(eea_cell_code) %>%
bind_cols(
tibble(
x = unlist(str_extract_all(unique(df_bl$eea_cell_code),
pattern = "(?<=E)[0-9\\-]+"
)),
y = unlist(str_extract_all(unique(df_bl$eea_cell_code),
pattern = "(?<=N)[0-9\\-]+"
))
) %>%
mutate_all(as.integer)
)
```

Error in `tibble()`:
! Tibble columns must have compatible sizes.
• Size 49146: Existing data.
• Size 49147: Column `y`.
ℹ Only values of size one are recycled.
Run `rlang::last_trace()` to see where the error occurred.
@SanderDevisscher
Copy link
Contributor Author

other example: 1kmE492N2410

@SanderDevisscher
Copy link
Contributor Author

there are also 186 NA's

SanderDevisscher added a commit to inbo/aspbo that referenced this issue Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants