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

Assessment per km2 #3

Open
david-beauchesne opened this issue Jan 23, 2024 · 1 comment
Open

Assessment per km2 #3

david-beauchesne opened this issue Jan 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@david-beauchesne
Copy link
Collaborator

At the moment, the code assumes that the projection is in meters and that cells are 1km2. This does not make sense in the long run and we should use the package units to deal with units.

@david-beauchesne david-beauchesne added the bug Something isn't working label Jan 23, 2024
@david-beauchesne david-beauchesne self-assigned this Jan 23, 2024
@david-beauchesne
Copy link
Collaborator Author

dplyr::mutate(area = sf::st_area(geo)) |>
dplyr::mutate(area = units::set_units(area, km^2))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant