aggregate_outputs: Aggregate outputs that are not in the top 'n' journals

Description Usage Arguments Details Value See Also Examples

View source: R/filter.R

Description

Choose the top n journals according to the number of submissions in the REF. The remaining journals are aggregated into a 'super-journal' called 'Other'.

Usage

1

Arguments

outputs

A data frame like that produced by tidy_outputs

top_journals

A data frame like that produced by get_top_journals

Details

To preserve data integrity, each journal is given a new_id, which in the case of the top n journals is identical to their original journal_id, in the case of conference proceedings is set equal to 0, in the case of n+1 or less popular journals, is set equal to -1 and in the case of other non-journal outputs it set equal to -2. These codes have no particular significance other than avoiding clashes with the automatically-assigned journal_ids assigned by the cluster_outputs_by_journals algorithm.

Value

A data frame similar to outputs but with lower-ranked journals aggregated classes 'Other journals', 'Conference proceedings' or 'Other outputs' according to their output type.

See Also

get_top_journals

Examples

1
2
3
math_outputs <- subset(tidy_outputs(), uoa_name == 'Mathematical Sciences')
math_outputs <- cluster_outputs_by_journals(math_outputs)
aggregate_outputs(math_outputs)

Selbosh/ref2014 documentation built on Nov. 15, 2019, 4:27 a.m.