https://github.com/tom-n-walker/uphill-plants-soil-carbon
Tip revision: 951e73295060ad88bddf5d48a3aa4b9d90475312 authored by Tom Walker on 07 September 2021, 14:32:36 UTC
Merge branch 'main' of github.com:tom-n-walker/uphill-plants-soil-carbon into main
Merge branch 'main' of github.com:tom-n-walker/uphill-plants-soil-carbon into main
Tip revision: 951e732
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)
}