Learn R Programming

comparison (version 1.0.8)

two.level.comparison.items: Create a compitem object.

Description

This function creates a compitem object from a data.frame or matrix of observations from an item to be deemed a control, or a recovered, item.

Usage

two.level.comparison.items(data, data.columns)

Value

an object of class compitem

Note

This function is deprecated and will eventually be replaced by makeCompItem().

Arguments

data

a matrix or data.frame of observed properties from either the control item, or the recovered item

data.columns

vector of integers giving which columns in data are the observations of the properties

Examples

Run this code
# load Greg Zadora's glass data
data(glass)

# calculate a compitem object representing the control item
control = two.level.comparison.items(glass[1:6,], c(7,8,9))

Run the code above in your browser using DataLab