You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/XVector-class.Rd
+52Lines changed: 52 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,13 @@
15
15
\alias{as.numeric,XVector-method}
16
16
\alias{show,XVector-method}
17
17
\alias{==,XVector,XVector-method}
18
+
\alias{<=,XVector,XVector-method}
19
+
\alias{>=,XVector,XVector-method}
20
+
\alias{<,XVector,XVector-method}
21
+
\alias{>,XVector,XVector-method}
22
+
\alias{!=,XVector,XVector-method}
23
+
\alias{pcompare,XVector,XVector-method}
24
+
\alias{order,XVector,XVector-method}
18
25
19
26
% XRawclass, functionsandmethods:
20
27
\alias{class:XRaw}
@@ -80,6 +87,31 @@
80
87
datawhenalinearsubsequenceneedstobeextracted.
81
88
}
82
89
90
+
\section{ComparisonoperationsonXVectorobjects}{
91
+
UnliketheR's base vectors, comparing two XVector objects works \emph{atomically} -- that is, it doesn'tcompareelement-by-element, butratherthetwovectorsasawhole.Thus, thereturnvalueofacomparisonbetweentwoXVectorobjectswillalwaysbeasinglelogicalvalue.ComparisonbetweenanXVectorandabasevectorisperformedbycoercingthebasevectortothesametypeastheXVectorpriorto comparison (potentiallythrowinganerrorifthecomparisonisimpossible!).
available in the help page available via S4Vectors:
107
+
\code{\link[S4Vectors]{pcompare}}.
108
+
}
109
+
\item{\code{order(x, decreasing=FALSE)}:}{
110
+
Returns a permutation vector that rearranges its first argument into ascending or descending order, similar to \code{\link[base]{order}}. Additional argument \code{na.last} is ignored, since XVector objects do not allow \code{NA} values. \code{method} is
111
+
}
112
+
}
113
+
}
114
+
83
115
\section{Additional Subsetting operations on XVector objects}{
84
116
In the code snippets below, \code{x} is an XVector object.
0 commit comments