Description Usage Arguments Value Examples
View source: R/padis_specific_functions.R
This function matches two items (identified based on their stem, see match_ir
), documents which of the two items had a value and not a missing value, and returns a data frame with two or all plus two colums (depending on return_complete_data
), where the first columns are the original columns from data
, and the last two colums are the origin of the value and the value itself.
1 2 |
data |
The data frame that contains the variables |
var_stem |
The stem of the item, i.e. the character stringr that both items share. Passed on to |
return_complete_data |
Logical, if |
end_pattern |
The end pattern to search for. Default is |
code_pattern |
The code pattern to be used. Default is |
return_indiciator |
Logical. Should the indicator variable be returned as well? Default is to |
A data frame with either 2 colums or all original columns and two additional columns.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.