View source: R/reshape_events_df.R
reshape_events_df | R Documentation |
Reshape Events DF
reshape_events_df( df, df_format = c("wide", "long"), id_column = NULL, dictionary_key, dictionary_gender = c("male", "female", "all") )
df |
dataframe of events |
df_format |
whether your events dataframe is wide (a column for actor, behavior, and object) or long (multiple rows for each event) |
id_column |
if your df is in long format, you must supply the column that identifies the individual event |
dictionary_key |
the actdata dictionary key you are using for your analysis |
dictionary_gender |
the gender EPA ratings you are using for your analysis. Should be male, female, or average |
a dataframe in the format necessary for applying main ACT functions to the events:
d <- tibble::tibble(actor = "ceo", behavior = "advise", object = "benefactor") reshape_events_df(df = d, df_format = "wide", dictionary_key = "usfullsurveyor2015", dictionary_gender = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.