tdrexpand: Expand a summary variable to the length of TDR data

Description Usage Arguments Value See Also Examples

Description

Expand a summary variable to the length of TDR data

Usage

1
tdrexpand(x, ty = "!_/", na_value = NA, obj = ind(), ...)

Arguments

x

variable to expand.

ty

a kind of regular expression that explains how to duplicate x values along TDR rows.

na_value

the NA value to be used (0 is can be useful).

obj

a "ses" object

...

arguments to be passed to merge.data.table.

Value

a vector of the same length as the number of rows in the tdr table of "obj".

See Also

tdrply

Examples

1
2
3
4
data(exses)
ind(exses)
exses$tdr$no_btt <- tdrexpand(exses$stat$no_dive, "_")
exses$tdr$no_dive  <- tdrexpand(exses$stat$no_dive, "!_/")

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.