Skip to contents

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.

Author

Hannah S. Fraser

Elliot Gould

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.