Learn R Programming

PairedData (version 0.9.1)

paired: Paired

Description

This function creates objects of class paired

Usage

paired(x, y)

Arguments

x
first vector.
y
second vector.

Value

  • An object of class paired.

Details

The two vectors must share the same class. Moreover, for vectors of class factor, they must have the same levels.

Examples

Run this code
x<-rnorm(15)
y<-rnorm(15)
p1<-paired(x,y)
show(p1)

data(iceskating)
p2<-with(iceskating,paired(Extension,Flexion))
show(p2)

Run the code above in your browser using DataLab