Learn R Programming

lpanda (version 0.2.1)

sample_different_varnames: Sample Dataset with Some Different Variable Names

Description

A variant of sample_data in which some variables have different names (list_name becomes party and elected becomes seat). This is useful for testing robustness of input handling.

Usage

sample_different_varnames

Arguments

Format

A data frame with 18 rows and 5 variables (same structure as sample_data).

Examples

Run this code
# Basic inspection
str(sample_different_varnames)

# Quick continuity diagram (basic and unformatted version)
net <- prepare_network_data(sample_different_varnames,
                                      input_variable_map = list(list_name = "party",
                                                                elected = "seat"),
                                      verbose = FALSE,
                                      skip_groups = TRUE)
plot_continuity(net)

Run the code above in your browser using DataLab