pile: Pile Partitions of Growth Curves

Description Usage Arguments Value Examples

Description

Generating objects of class piled_curves.

In the case of crops, sorting of data frames should be done from left to right according to the bottom-up position of organs in the plants.

In the method 'formula', the terms at the left side are the sorted biomass variables, while at the right side are the time variables.

Usage

1
2
3
4
5
6
7
pile(x, ...)

## S4 method for signature 'data.frame'
pile(x, time, biomass, ...)

## S4 method for signature 'formula'
pile(x, data, ...)

Arguments

x

A data frame or a formula.

...

Further arguments passed among methods.

time, biomass

Character vectors indicating the names of time and biomass variables in the input data frame.

data

A data frame including time and biomass variables.

Value

A S4 object of class piled_curves.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Subset to one treatment
maize_model <- subset(maize_model, treatment == "T3")

## Method for data frame
maize_growth <- pile(x=maize_model, time=c("current_date","development_stage","tsum"),
	biomass=c("wst","wglv","wgld","yield"))

## Method for formula
maize_growth <- pile(wst + wglv + wgld + yield ~ current_date + development_stage + tsum,
	data=maize_model)

kamapu/cropgrowth documentation built on Aug. 22, 2021, 8:55 a.m.