Skip to contents

Summarise binary coded features of analyses

Usage

count_binary_coded_features(data)

Arguments

data

A dataframe containing the variables dataset, and lm, mixed_model, Bayesian, which are coded as binary numeric vectors.

Value

A dataframe with the variables

Author

Hannah S. Fraser

Elliot Gould

Examples

ManyEcoEvo %>%
  filter(dataset == "eucalyptus") %>%
  ungroup() %>%
  select(data) %>%
  unnest(data) %>%
  mutate(
    lm = ifelse(linear_model == "linear", 1, 0), # TODO move into master processing
    glm = ifelse(linear_model == "generalised", 1, 0),
    Bayesian = as.numeric(Bayesian)
  ) %>%
  count_binary_coded_features()
#> Error in mutate(., lm = ifelse(linear_model == "linear", 1, 0), glm = ifelse(linear_model ==     "generalised", 1, 0), Bayesian = as.numeric(Bayesian)): could not find function "mutate"