From 05d635f303f3feb2ab518b7b6c0f0203cbc165a8 Mon Sep 17 00:00:00 2001 From: ehwenk Date: Wed, 24 Apr 2024 16:24:17 +1000 Subject: [PATCH 1/2] Adding sources Adding sources into Wenk_2022, Wenk_2023 as measurement_remarks --- data/Wenk_2022/metadata.yml | 4 +++- data/Wenk_2023/metadata.yml | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/data/Wenk_2022/metadata.yml b/data/Wenk_2022/metadata.yml index 4f7cf3551..da3d9c09f 100644 --- a/data/Wenk_2022/metadata.yml +++ b/data/Wenk_2022/metadata.yml @@ -32,11 +32,13 @@ dataset: woodiness_to_use = stringr::str_replace( woodiness_to_use, "soft_woody", "semi_woody"), woodiness_to_use = stringr::str_replace( - woodiness_to_use, "woody_stemmed_monocot", "woody_like_stem") + woodiness_to_use, "woody_stemmed_monocot", "woody_like_stem"), + measurement_remarks = paste0(reference_category, ": ", references) ) ' collection_date: unknown/2022 taxon_name: taxon_name + measurement_remarks: measurement_remarks description: A curated collection of plant growth form values that includes nearly all species in the Australian Plant Census (APC). Dataset is compiled from a combination of data extracted from state and national online floras, supplemented by the taxonomic diff --git a/data/Wenk_2023/metadata.yml b/data/Wenk_2023/metadata.yml index 4c5b63f5f..ead854b3f 100644 --- a/data/Wenk_2023/metadata.yml +++ b/data/Wenk_2023/metadata.yml @@ -21,9 +21,13 @@ contributors: dataset_curators: Elizabeth Wenk dataset: data_is_long_format: no - custom_R_code: .na + custom_R_code: ' + data %>% + mutate(measurement_remarks = paste0(source, ": ", citation)) + ' collection_date: unknown/2022 taxon_name: taxon_name + measurement_remarks: measurement_remarks description: A curated collection of life history values that includes nearly all species in the Australian Plant Census (APC). basis_of_record: literature field From 3d276d88ddfff6a7f9671df437e9239187a28a06 Mon Sep 17 00:00:00 2001 From: ehwenk Date: Wed, 24 Apr 2024 18:35:54 +1000 Subject: [PATCH 2/2] remove brackets in Wenk_2023 trait scorings Approximately 100 taxa were being mistakenly excluded because one of the trait values had brackets around the trait value to designate it as "less common". As a result the entire trait value was being excluded. --- data/Wenk_2023/metadata.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/Wenk_2023/metadata.yml b/data/Wenk_2023/metadata.yml index ead854b3f..27024f73d 100644 --- a/data/Wenk_2023/metadata.yml +++ b/data/Wenk_2023/metadata.yml @@ -23,7 +23,11 @@ dataset: data_is_long_format: no custom_R_code: ' data %>% - mutate(measurement_remarks = paste0(source, ": ", citation)) + mutate( + measurement_remarks = paste0(source, ": ", citation), + life_history_scored = stringr::str_replace_all(life_history_scored, "\\(", "") , + life_history_scored = stringr::str_replace_all(life_history_scored, "\\)", "") + ) ' collection_date: unknown/2022 taxon_name: taxon_name