reidentify_actor: Function to Generate the Re-identification of the Actor

View source: R/reidentify_actor.R

reidentify_actorR Documentation

Function to Generate the Re-identification of the Actor

Description

Function to Generate the Re-identification of the Actor

Usage

reidentify_actor(
  d,
  equation_key = NULL,
  equation_gender = NULL,
  eq_df = NULL,
  ...
)

Arguments

d

a dataframe from reshape events that should be only actor_modifier and actor elements or object_modifier and object elements

equation_key

a string corresponding to the equation key from actdata

equation_gender

either average, male, or female, depending on if you are using gendered equations

Value

dataframe with 3 columns corresponding to the EPA of optimal actor identity relabel

Examples

d <- tibble::tibble(actor = "ceo", behavior = "advise", object = "benefactor")
d <- reshape_events_df(df = d, df_format = "wide", dictionary_key = "usfullsurveyor2015", dictionary_gender = "average")
reidentify_actor(d = d, equation_key = "us2010", equation_gender = "average")

ekmaloney/inteRact documentation built on Feb. 20, 2023, 1:29 p.m.