Summarise variable usage across analyses
Source:R/summarise_variable_counts.R
summarise_variable_counts.Rd
Using count_analyses_variables_used()
calculates the counts of analyses in which each variable is used for a given dataset
. Further summarisation of those counts ( mean
, sd
, min
and max
) is optional, see details.
Usage
summarise_variable_counts(
ManyEcoEvo,
ManyEcoEvo_results,
ManyEcoEvo_yi_results,
output = "count"
)
Arguments
- ManyEcoEvo
A tibble of
ManyEcoEvo
- ManyEcoEvo_results
A tibble of
ManyEcoEvo_results
- ManyEcoEvo_yi_results
A tibble of
ManyEcoEvo_yi_results
- output
A length 1 character vector equal to
"count"
or"aggregate"
Value
A dataframe of count values n
or summary statistic values n_mean
,n_sd
,n_min
,n_max
of counts depending on the the value supplied to the output
argument.
Details
To calculate count values, supply "count"
to argument output
. To calculate summary statistics of counts, supply "aggregate"
to argument output
instead.
See also
Other Multi-dataset Wrapper Functions:
apply_VZ_exclusions()
,
compute_MA_inputs()
,
generate_exclusion_subsets()
,
generate_outlier_subsets()
,
generate_rating_subsets()
,
generate_yi_subsets()
,
make_viz()
,
meta_analyse_datasets()
,
prepare_ManyEcoEvo()
,
prepare_ManyEcoEvo_yi()
,
prepare_response_variables()
,
prepare_response_variables_yi()
,
summarise_analysis_types()
,
summarise_conclusions()
,
summarise_model_composition()
,
summarise_reviews()
,
summarise_sorensen_index()
Examples
summarise_variable_counts(ManyEcoEvo, ManyEcoEvo_results, ManyEcoEvo_yi_results, "count")
#> Error in group_by(., estimate_type, dataset): Must group by variables found in `.data`.
#> Column `estimate_type` is not found.
#> Column `dataset` is not found.
summarise_variable_counts(ManyEcoEvo, ManyEcoEvo_results, ManyEcoEvo_yi_results, "aggregate")
#> Error in group_by(., estimate_type, dataset): Must group by variables found in `.data`.
#> Column `estimate_type` is not found.
#> Column `dataset` is not found.