README.md

saapsim

The goal of saapsim is to provide access to commonly needed functions when working with APSIM (for the Archontoulis Lab).

Installation

The development version is on GitHub, accessed with

#install.packages("devtools")
#devtools::install_github("vanichols/saapsim")

Example(s)

All functions start with saf_xxx (sotris-apsim-function), so you can easily see a list pop up if you type saf and hit tab.

You can read in ‘.out’ files and smoosh them into one dataframe with the saf_readapout function

#library(saapsim)
#mydir <- "/apsim_results_folder"
#saf_readapout(mydir)

You can easily convert corn bushes/acre to dry kg/ha with the saf_buac_to_kgha_corn function

library(saapsim)
saf_buac_to_kgha_corn(210)
#> [1] 11204.44

You can effortlessly figure out what the day-of-year March 21 2000 was with the saf_date_to_day function

library(saapsim)
saf_date_to_doy("2000-03-21")
#> [1] 81


vanichols/saapsim documentation built on Oct. 11, 2020, 6:57 p.m.