- Notifications
You must be signed in to change notification settings - Fork2
This package contains useful functions for the PFTC data analysis. For example creating a unique envelope ID.
License
Unknown, MIT licenses found
Licenses found
Plant-Functional-Trait-Course/PFTCFunctions
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
PFTCFunctions is a collection of R functions used to collect plantfunctional traits during the Plant Functional Trait Course (PFTC). Thetrait data collection is organized in multiple stations where differenttraits are measured, and we call it the trait wheel (see figure below).
The package contains the following: - download_PFTC_data -get_PFTC_envelope_code - make_barcode_labels
InstallPFTCFunctions fromGitHub using thefollowing code:
# install.packages("remotes")remotes::install_github("Plant-Functional-Trait-Course/PFTCFunctions")
to be added
The functionget_PFTC_envelope_code creates unique hashcodes, which weuse as unique IDs for each individual leaf. The codes are randomlycreated using a specific seed for each course (see table below) andcontain 3 letters followed by 4 numbers.
| Country | seed | Campaign | as.3.5 |
|---|---|---|---|
| Peru | 1 | PFTC3 | TRUE |
| Peru | 1 | Puna | TRUE |
| Svalbard | 32 | PFTC4 | TRUE |
| Peru | 6 | PFTC5 | TRUE |
| Norway | 49 | PFTC6 | FALSE |
The as.3.5 decides if using R > 3.5 if to use the old or new samplemethod. Note that for PFTC6, as.3.5 needs to be FALSE.
This is how to use the function:
library(PFTCFunctions)## create list with all envelope codes. And show the first five valuesall_codes<- get_PFTC_envelope_codes(seed=1)all_codes$hashcode[1:5]#> [1] "AAA4667" "AAB6541" "AAC0068" "AAD5960" "AAE3544"
Themake_barcode_labels function creates a PDF with barcodes from theunique IDs with can then be printed on stickers.
In the trait wheel, each sampled leaf gets an ID and is put into anenvelope for further processing. To avoid errors and simplify theprocess, we make barcodes from the unique IDs and produce stickers,which are put on the envelopes (see picture below).
We use the following label type: Avery or Herma 45.7 x 21.2 mm, 48stickers per page For example seehere.
Other types and sizes of labels can be used, but the function has to beadapted.
About
This package contains useful functions for the PFTC data analysis. For example creating a unique envelope ID.
Resources
License
Unknown, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

