Learn R Programming

PairedData (version 1.1.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
# NOT RUN {
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