Set GRiwrm rownames with ID
with rownames(griwrm) <- griwrm$id and after that we could write griwrm[id,] instead of griwrm[griwrm$id==id,]
Maybe a benchmark will prove that it is faster.
La forge gitlab.irstea.fr sera définitivement arrêtée le 30 juin 2026. Nous vous invitons à migrer vos projets vers la forge INRAE. Vous trouverez plus de détails sur le blog de la forge INRAE.
with rownames(griwrm) <- griwrm$id and after that we could write griwrm[id,] instead of griwrm[griwrm$id==id,]
Maybe a benchmark will prove that it is faster.