Learn R Programming

quallmer (version 0.4.0)

inputs: Extract input data from qlm_coded objects

Description

Extracts the original input data (texts or image paths) from qlm_coded objects. The inputs are the source material that was coded, constituting a core component of the coded object.

Usage

inputs(x)

Value

The original input data: a character vector of texts (for text codebooks) or file paths to images (for image codebooks). If the original input had names, these are preserved.

Arguments

x

A qlm_coded object.

Details

The inputs are a core component of coded objects, representing the source material that was coded. Like codebook(), this is a component extractor rather than a metadata accessor.

The function name mirrors the inputs argument in qlm_code(), providing a direct conceptual mapping: what is passed in via inputs = is retrieved back via inputs().

See Also

  • accessors for an overview of the accessor function system

  • qlm_code() for creating coded objects

  • codebook() for extracting the codebook

  • qlm_meta() for extracting metadata

Examples

Run this code
# Load example objects
examples <- readRDS(system.file("extdata", "example_objects.rds", package = "quallmer"))
coded <- examples$example_coded_sentiment

# Extract inputs
texts <- inputs(coded)
texts

Run the code above in your browser using DataLab