returning_authors_metric.Rd
Returns a breakdown of new vs returning authors
returning_authors_metric(code, previousFilter, currentFilter, file = NULL, save = FALSE)
code | The account code to use |
---|---|
previousFilter | Filter for the time period you want to compare your authors against |
currentFilter | Filter for the current time period whose authors you want to check |
file | An optional file name to save a CSV file to |
save | Set to TRUE if you'd like a dialog file to choose where to save your CSV |
A tibble of your data
returning_authors_metric("QUIR01BA", "published after '2018/05/01' and published before '2018/06/01' and brand isorchildof 10006", "published after '2018/06/01' and published before '2018/07/01' and brand isorchildof 10006")#> # A tibble: 2 x 3 #> authorStatus count percentage #> <chr> <int> <dbl> #> 1 new 98 0.933 #> 2 returning 7 0.0667