labels: Set Labels

labels<-R Documentation

Set Labels

Description

A generic function for setting labels for an object.

Usage

  labels(object) <- value

Arguments

object

an object.

value

an object.

Examples

## method for "paircomp" data
pc <- paircomp(rbind(
  c(1,  1,  1), # a > b, a > c, b > c
  c(1,  1, -1), # a > b, a > c, b < c
  c(1, -1, -1), # a > b, a < c, b < c
  c(1,  1,  1)))
labels(pc)
labels(pc) <- c("ah", "be", "ce")
pc

psychotools documentation built on May 29, 2024, 8:12 a.m.