https://github.com/tom-n-walker/uphill-plants-soil-carbon
Revision 0222df8ac72ac241faa8e579969ae1a5bba4fcff authored by tom-n-walker on 08 September 2021, 06:47:11 UTC, committed by GitHub on 08 September 2021, 06:47:11 UTC
1 parent 86e4ff4
Raw File
Tip revision: 0222df8ac72ac241faa8e579969ae1a5bba4fcff authored by tom-n-walker on 08 September 2021, 06:47:11 UTC
Update README.md
Tip revision: 0222df8
load_gh_plants.R
################################################################################
#### Project: Lowland plant migrations alpine soil C loss
#### Title:   Function | Load glasshouse species level data
#### Author:  Tom Walker (thomas.walker@usys.ethz.ch)
#### Date:    26 May 2021
#### ---------------------------------------------------------------------------

load_gh_plants <- function(){
  # load
  plants <- fread("./data/glasshouse_plants.csv") %>%
    as.data.frame %>%
    # select traits of interest
    select(Pot:PFT, rAGB.mg:rTB.mg, SLA.cm2.g, Amax, gsmax) %>%
    # drop NAs
    drop_na
  # return
  return(plants)
}
back to top