Description Usage Arguments Details Value Examples
lazarus()
performs a backwards replacement of values starting from a
transition pattern.
1 2 |
data |
Data frame containing measurements for an IDENT site (wide
format). It must contain the index columns |
variable |
Variable (i.e. column) in the data set in which values are to be replaced. |
sort_var |
The data set is automatically partitioned according to
|
transition |
A vector of length 2, specifying the first and second value
of a transition. These transitions will mark the start from which values
equal to |
backtrace_val |
Values that are to be traced, starting at a
|
replace_val |
New value that will replace |
append |
If |
This function acts on a standard inventory table for an IDENT site. For a
specified variable
, it traces chains of values equal to backtrace_val
,
starting at entries that are the beginning of a transition
pattern. The
entries in the chains are then replaced with replace_val
. The standard
output contains the original data set and to two additional columns:
*variable*_replace
indicates whether an entry was replaced.
*variable*_new
holds the new sequence of values after performing
replacements.
The performance of the function should remain stable for several hundred thousand rows.
A data frame with index columns, *variable*
, *variable*_new
holding the new values, and *variable*_replace
indicating whether a
value in the row has been replaced (1
) or not (0
).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.