From a9db9f7ddc76f3dbf01597337ec4a5cda895e283 Mon Sep 17 00:00:00 2001 From: James Hagan Date: Sun, 16 Jul 2023 18:21:07 +0200 Subject: [PATCH] update the get_trait_from_taxon() --- R/get_trait_from_taxon.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/get_trait_from_taxon.R b/R/get_trait_from_taxon.R index 5e2d870..dc0b380 100644 --- a/R/get_trait_from_taxon.R +++ b/R/get_trait_from_taxon.R @@ -107,7 +107,7 @@ get_trait_from_taxon <- function(data, trait_sel <- decision_df |> dplyr::filter(workflow2_choice == TRUE) |> - dplyr::group_by(, row) |> + dplyr::group_by(row) |> dplyr::slice_head(n = 1) |> dplyr::ungroup()