summarise_sources_by_session: Record distribution between sources for each session

summarise_sources_by_sessionR Documentation

Record distribution between sources for each session

Description

Applies summarise_by_source() to all selected sessions.

Usage

summarise_sources_by_session(
  sessions = list.files(sessions_folder),
  sessions_folder = getOption("baysren.sessions_folder", "Sessions"),
  add_global_totals = TRUE,
  keep_session_label = FALSE,
  ...
)

Arguments

sessions

A vector of session identifiers corresponding to folders into the sessions_folder folder.

sessions_folder

Where to find the sessions folders.

add_global_totals

Add results for all sessions considered together.

keep_session_label

Add a column which groups rows by session. Useful for subsequent sub-setting of the results.

...

Other arguments passed to summarise_by_source().

Value

A data frame with the number and fraction of total records per source and number and fraction of source-specific records, grouped by session. An extra group with the overall results is reported if add_global_totals is TRUE.

Examples

## Not run: 
# Describe source distribution by source and in total
summarise_sources_by_session(add_global_totals = TRUE)

## End(Not run)

bakaburg1/BaySREn documentation built on March 30, 2022, 12:16 a.m.