Description Usage Arguments Details Value Examples
Add a rotation group indicator to a table indicating wheter a unit is present in the previous and next samples.
1 | add.rg3(df_1, df0, df1, id, rg.name = "rg")
|
df_1 |
a data frame, the previous table |
df0 |
a data frame, the current table |
df1 |
a data frame, the next table |
id |
a vector of character strings indicating the variable names for the sample unit primary key. |
rg.name |
a character string |
creates a variable named rg.name
that takes values
4 for elements present in the current and next tables only,
3 for elements present in the current table only,
2 for elements present in the previous, current and next tables,
1 for elements present in the previous and current tables only.
depends on dplyr, tidyr
a list of data.frames with a new variable named rg.name
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.