View source: R/transient_impression.R
transient_impression | R Documentation |
Calculate the Transient Impression after an Event
transient_impression( d, equation_key = NULL, equation_gender = NULL, eq_df = NULL, ... )
d |
data that has been reshaped to be in long format, with columns: element, term, component, event, event_id, dimension, and estimate |
equation_key |
the actdata equation key for the equation to use to get the transient impression |
equation_gender |
male, female, or average, corresponding to the gender of equation to use when calculating the transient impression |
eq_df |
use this only if you have used your own equation and not one in actdata |
dataframe in long format, with one row for each element-dimension of the event, columns for fundamental sentiment and transient impression.
d <- tibble::tibble(actor_modifier = "tired", actor = "ceo", behavior = "advise", object = "benefactor") d <- reshape_events_df(df = d, df_format = "wide", dictionary_key = "usfullsurveyor2015", dictionary_gender = "average") transient_impression(d = d, equation_key = "us2010", equation_gender = "average")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.