-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bring back suggested function #10
base: main
Are you sure you want to change the base?
Conversation
I have added different comments to guarantee that the function works with the code. I needed to modify some files in the package and add documentation files to ensure the GitHub validations were done well. Now, the validation process fails because the files "mamm_dep_col_conf.csv" and "mamm_mun_col_conf.csv" generate an error. I suggest that those files be adjusted to guarantee the package's functionality. Regards, Cristian |
ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no se si ahora si te salen los comentarios... si no te los envio como foto al email.
R/mamm_coords_validator.r
Outdated
@@ -134,7 +133,7 @@ mamm_coords_validator <- function(df, sp_names, taxon = NULL, colmap = NULL, lon | |||
if (nrow(vect.spp.i) > nrow(vect.spp.i.t) ) { | |||
|
|||
vect.spp.i.novali <- vect.spp.i[!(vect.spp.i$IDVal %in% vect.spp.i.t$IDVal), ] | |||
vect.spp.i.novali2 <- terra::intersect(terra::vect(ocenamap), vect.spp.i.novali) | |||
vect.spp.i.novali2 <- terra::intersect(terra::vect(oceanmap), vect.spp.i.novali) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crees que esta parte se pueda hacer con el paquete sf sin tener que llamar a terra? algo asi como:
library(sf)
out <- st_intersection(points, poly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voy a actualizarlo para incluirla.
data/colmap_igac.rda
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cristian,
crees que sea posible aligerar los polígonos del mapa? y/o comprimirlo de alguna forma? Es para no superar 5 megas. Ya que como esta, con mas de 10 megas no nos deja subirlo a CRAN.
Tal vez usando https://cran.r-project.org/web/packages/rmapshaper/vignettes/rmapshaper.html pueda ser una solucion...
Seria ideal usar un solo mapa para las dos funciones: mamm_coords_validator.R y mammalmap.R Viendo este problema tenemos que ser creativos para poder usar el mapa de municipios... tal vez hacer que el mapa se baje de alguna forma de GDAM con https://github.com/rspatial/geodata/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si se pueden. La primer versón contó con la capa que está por defecto en el paquete, pero esta tiene muchos errores topológicos y arrojaba zonas sin información, a pesar de que los datos estaban claramente en un departmento.
Voy a incluir una de esas y agrego en comentarios los errores de precisión, para que un usuario que se cruce con este problema no piense que es un error del paquete.
… file for evaluation, and remove colmap_igac to reduce package size
Sorry for the pull request. I merged the files by mistake and brought them back for your revision.