EcologicalTraitData / traitdataform

A package to manage and compile functional trait data into predefined templates
https://ecologicaltraitdata.github.io/traitdataform/
Other
33 stars 9 forks source link

add functionality to update user provided unit #3

Closed fdschneider closed 7 years ago

fdschneider commented 7 years ago

After running the standardize.taxonomy function, the user provided unit might need to be changed. a re-running of as.traitdata is invalid. Also the mapping function does not provide this. It might not be necessary to write an own function, but providing a one-liner that maps units according to column "traitName".

fdschneider commented 7 years ago
dataset1std$traitUnit <- c("mm", "unitless", rep("", 7))[as.integer(dataset1std$traitName)]
fdschneider commented 7 years ago

would be solved by merge() method, see #7