Skip to content

Commit

Permalink
Fix SAH_2014
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsophieee committed Dec 1, 2023
1 parent a08dfba commit 79a1505
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/SAH_2014/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ Eucalyptus striaticalyx,8,11,cm,2.5,3.5,cm,NA,10,m
Eucalyptus cneorifolia,5,10,cm,0.6,1,cm,NA,10,m
Eucalyptus flindersii,7,14,cm,1,2,cm,NA,10,m
Eucalyptus oleosa,6,14,cm,1,2,cm,NA,10,m
Eucalyptus porosa,6,9,cm,0.6,2.5,cm,NA,10,m
Eucalyptus porosa,6,9,cm,0.6,25,cm,NA,10,m
Eucalyptus rugosa,5,10,cm,1,3,cm,NA,10,m
Eucalyptus socialis,6,14,cm,1,2,cm,NA,10,m
Eucalyptus viridis,5,16,cm,0.3,0.5,cm,NA,10,m
Expand Down
7 changes: 4 additions & 3 deletions data/SAH_2014/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dataset:
custom_R_code: '
data %>%
mutate(
leaf_width_max = ifelse(species == "Eucalyptus porosa", leaf_width_max/10, leaf_width_max),
leaf_length_unit_numeric = ifelse(leaf_length_unit == "cm", 10, NA),
leaf_length_unit_numeric = ifelse(leaf_length_unit == "mm", 1, leaf_length_unit_numeric),
leaf_length_max = leaf_length_max * leaf_length_unit_numeric,
Expand All @@ -43,9 +44,9 @@ dataset:
sampling_strategy: Herbarium specimens and other herbarium curated data from South
Australia
original_file: .na
notes: Request acknowledgement of "State Herbarium of South Australia"; `data.csv`
has been modified to change Eucalyptus porosa `leaf_width` value from 25 cm to
2.5, due to likely typo.
notes: Request acknowledgement of "State Herbarium of South Australia"; Eucalyptus
porosa `leaf_width` value has been modified from 25 cm to 2.5, due to likely typo,
in custom_R_code.
locations: .na
contexts: .na
traits:
Expand Down
2 changes: 1 addition & 1 deletion data/Williams_2011/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contributors:
dataset_curators: Elizabeth Wenk
dataset:
data_is_long_format: no
custom_R_code: '
custom_R_code: '
data %>%
mutate(
Clonality = paste0(Clonality,Clonality_b),
Expand Down

0 comments on commit 79a1505

Please sign in to comment.