R: Construct a Paired-Data Object (original) (raw)

Pair {stats} R Documentation

Description

Combines two vectors into an object of class "Pair".

Usage

Pair(x, y)

Arguments

x a vector, the 1st element of the pair.
y a vector, the 2nd element of the pair. Should have the same length as x.

Value

A 2-column matrix of class "Pair".

Note

Mostly designed as part of the formula interface to paired tests.

See Also

[t.test](../../stats/help/t.test.html) and [wilcox.test](../../stats/help/wilcox.test.html)


[Package _stats_ version 4.6.0 Index]