Learn R Programming

saros (version 1.6.1)

generate_crowd_output: Generate Output for a Specific Crowd

Description

Internal helper function that generates the final output object for a crowd by processing data summary and calling the appropriate make_content function.

Usage

generate_crowd_output(args, subset_data, dep_crwd, indep_crwd)

Value

Output object (type depends on makeme type):

  • Could be plot, table, or other analysis object

  • Generated by make_content() with crowd-specific arguments

Arguments

args

List of makeme function arguments

subset_data

Data frame subset for the current crowd

dep_crwd

Character vector of dependent variable names for current crowd

indep_crwd

Character vector of independent variable names for current crowd

Details

Processing steps:

  • Summarizes data using summarize_data_by_type()

  • Sets main question from variable labels

  • Post-processes data summary for most types

  • Calls make_content() to generate final output