Skip to contents

This function processes a list of applicants, extracting specific indicators from each applicant's data and compiling them into a single data frame. It also includes metadata such as ORCID, LastName, and ExternalRaterName from the applicant's profile.

Usage

extract_indicators(
  applicant_list,
  selector = c("P_"),
  meta_selector = c("ORCID", "LastName", "ExternalRaterName", "YearPhD")
)

Arguments

applicant_list

A list containing the RESQUE jsons from multiple applicants.

selector

The prefix(es) of indicators that should be selected with starts_with()

meta_selector

A list of the exact indicator names from the author's meta-information that should be included in the return object.

Value

The function returns a data frame where each row corresponds to one publication and indicators are in columns.