Skip to contents

`array_week()` transforms a list of 3D-arrays on a list of 4D-arrays by taking into account information on week. Called in `make_curve()`.

Usage

array_week(l, calendar, week, type = NULL, rule = list())

Arguments

l

list of 3D-arrays (height, duration, current) of damaging function for a list of phenomena.

calendar

data.frame, calendar of `damaging.complement`.

week

vector of values of the week where to calculate damaging.

type

vector of type of phenomena used to group damaging function.

rule

list of rules to be passed to each `type`.

Value

list of 4D-arrays (height, duration, current, week), elements of the list are given by the type