Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This package contains useful functions for the PFTC data analysis. For example creating a unique envelope ID.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

Plant-Functional-Trait-Course/PFTCFunctions

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 different stages from collection, processing and curating data from the trait wheel.

The different stages from collection, processing and curating data fromthe trait wheel.

The package contains the following: - download_PFTC_data -get_PFTC_envelope_code - make_barcode_labels

Installation

InstallPFTCFunctions fromGitHub using thefollowing code:

# install.packages("remotes")remotes::install_github("Plant-Functional-Trait-Course/PFTCFunctions")

Download PFTC data

to be added

Make unique envelope codes

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.

CountryseedCampaignas.3.5
Peru1PFTC3TRUE
Peru1PunaTRUE
Svalbard32PFTC4TRUE
Peru6PFTC5TRUE
Norway49PFTC6FALSE

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"

Make barcode labels

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.

Envelope with a barcode sticker.

Envelope with a barcode sticker.

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

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp