File: subset.paircomp.Rd

package info (click to toggle)
r-cran-psychotools 0.6-0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,112 kB
  • sloc: ansic: 139; sh: 13; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\name{subset.paircomp}

\alias{subset.paircomp}
\alias{reorder.paircomp}

\title{Subsetting/Reordering Paired Comparison Data}

\description{
  Selection of subsets of objects to be compared and/or reordering of  
  objects in \code{"paircomp"} data.
}

\usage{
  \method{reorder}{paircomp}(x, labels, \dots)
  \method{subset}{paircomp}(x, subset, select, \dots)

}

\arguments{
  \item{x}{an object of class \code{"paircomp"}.}
  \item{labels, select}{character or integer. Either a vector of
    (at least two) elements of \code{labels(x)} or an integer
    with their position. Partial string matching is enabled.}
  \item{subset}{currently not implemented. (Should be a specification
    of subsets of subjects.)}
  \item{\dots}{currently not used.}
}

\details{
  The \code{subset} method currently just calls the \code{reorder} method.
}

\seealso{\code{\link{paircomp}}}

\examples{
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)))
reorder(pc, c("c", "a"))
}

\keyword{classes}