New column from one extra attribute

extra_attr_to_column(data, attr, flatten = FALSE)

Arguments

data

An interaction data frame.

attr

The name of an extra attribute; NSE is supported.

flatten

Logical: unnest the list column even if some records have multiple values for the attributes; these will yield multiple records in the resulted data frame.

Value

Data frame with the new column created; the new column is list type if one interaction might have multiple values of the attribute, or character type if