sample_data: Sample Dataset for quallmer app

sample_dataR Documentation

Sample Dataset for quallmer app

Description

A sample dataset for demonstrating the quallmer app's validation functionality. Contains movie review texts coded by multiple coders with a gold standard.

Usage

sample_data

Format

A data frame with 20 rows and 6 variables:

.row_id

Unique identifier for each text

text

Movie review text

gold_sentiment

Gold standard sentiment label (positive, negative, neutral)

coder1_sentiment

Human coder's sentiment classification

coder2_sentiment

LLM coder's sentiment classification (moderate accuracy)

coder3_sentiment

Another LLM coder's sentiment classification (lower accuracy)

Details

This dataset is useful for:

  • Testing inter-rater reliability calculations (using coder1, coder2, coder3)

  • Testing gold-standard validation (using gold_sentiment as reference)

  • Learning how to use the quallmer app

  • Demonstrating nominal measurement level metrics

Examples

if (interactive()) {
  # Option 1: Use the pre-made sample file from the package
  # Get the path to the sample data file
  sample_file <- system.file("extdata", "sample_data.rds", package = "quallmer.app")

  # Launch the app and upload this file through the UI
  qlm_app()

  # Option 2: Load the data and save your own copy
  data(sample_data)
  saveRDS(sample_data, "my_sample.rds")
  # Then load my_sample.rds in qlm_app()
}

quallmer.app documentation built on March 8, 2026, 5:06 p.m.