Description Usage Arguments Value Author(s) See Also Examples

Splits the values of a response into subsets corresponding
individuals and applies a function that calculates a single
value from each individual's observations during a specified
time interval. It includes the ability to calculate the
observation number that is closest to the calculated value of
the function and the assocated values of a `factor`

or
`numeric`

.

1 2 3 4 |

`response` |
A |

`weights` |
A |

`individuals` |
A |

`FUN` |
A |

`which.obs` |
A |

`which.values` |
A |

`start.time` |
A |

`end.time` |
A |

`times.factor` |
A |

`suffix.interval` |
A |

`data` |
A |

`na.rm` |
A |

`sep` |
A |

`... ` |
allows for arguments to be passed to |

A `data.frame`

, with the same number of rows as there are
`individuals`

, containing a column for the `individuals`

and
a column with the values of the function for the `individuals`

.
It is also possible to determine observaton numbers or the values of
another column in `data`

for the `response`

values that are
closest to the `FUN`

results, using either or both of
`which.obs`

and `which.values`

. If `which.obs`

is
`TRUE`

, a column with observation numbers is included in the
`data.frame`

.
If `which.values`

is set to the name of a `factor`

or
a `numeric`

,a column containing the levels of that
`factor`

or the values of that `numeric`

is
included in the `data.frame`

.

The name of the column with the values of the function will be result of
concatenating the `response`

, `FUN`

and, if it is not
`NULL`

, `suffix.interval`

, each separated by a full stop.
If `which.obs`

is `TRUE`

, the column name for the obervations
numbers will have `.obs`

added after `FUN`

into the column name
for the function values; if `which.values`

is specified,
the column name for these values will have a full stop followed by
`which.values`

added after `FUN`

into the column name
for the function values.

Chris Brien

`intervalGRaverage`

, `intervalGRdiff`

, `intervalWUI`

, `splitValueCalculate`

, `getTimesSubset`

1 2 3 4 5 6 7 8 9 10 | ```
data(exampleData)
Area.smooth.max <- intervalValueCalculate("Area.smooth",
start.time = 31, end.time = 35,
suffix.interval = "31to35",
data = longi.dat)
AGR.max.dat <- intervalValueCalculate("Area.smooth.AGR", FUN="max",
start.time = 31, end.time = 35,
suffix.interval = "31to35",
which.values = "Days", which.obs = TRUE,
data=longi.dat)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.