Description Usage Arguments Value Author(s) Examples
build_messages()
reconciles and merges the messages from
im_orig_dfs$orig_message_posts
and im_core_dfs$core_message_posts
.
1 2 3 4 5 | build_messages(
summarize = TRUE,
split = FALSE,
as_tibble = ironmarch_as_tibble()
)
|
summarize |
|
split |
|
as_tibble |
|
Data Frame
default: a tibble::tibble()
if as_tibble
is TRUE
and {tibble}
is installed.
alternative: a data.table::data.table()
If split
is TRUE
and summarize
is FALSE
, the result will be a list()
of
data frames.
Brendan Knapp brendan.g.knapp@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # messages summarized to single rows ==================================================
build_messages()
# all message observations ============================================================
build_messages(summarize = FALSE)
# all message observations split into a list of data frames ===========================
split_messages <- build_messages(summarize = FALSE, split = TRUE)
# first five messages that appear in both... ==========================================
# ... `im_orig_dfs$orig_message_posts` and `im_core_dfs$core_message_posts`
split_messages[
vapply(split_messages, function(.x) nrow(.x) == 2, logical(1L))
][1:5]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.