
Count number of analyses each variable is used
Source:R/summarise_variable_counts.R
count_analyses_variables_used.RdCount number of analyses each variable is used
Arguments
- data
A dataframe containing the variables
dataset,id_coland columns filled with the name of the variable indicating variable usage.
Details
Values in variable columns are character strings or NA. NA values are treated as absence of variable in a given analysis (observation / row), while character strings are treated as presence of that variable in a given analysis.
Variable presence in an analysis is converted to numeric 1's/0's and then summed to calculate total times the analysis is used across all analyses (n).