x <- list(A=c("abc", "XY"), B=NULL, C=letters[1:4])
y <- strsplit(x, split="in", fixed=TRUE)

### Aliases: class:Vector Vector-class Vector showAsCell
###   mcols mcols,Vector-method values values,Vector-method
###   mcols<-,Vector-method values<- values<-,Vector-method [,Vector-method
###   window,vector-method window.vector window,factor-method window.factor
###   window,NULL-method window.NULL window<-,Vector-method window<-.Vector
###   window<-.factor seqselect seqselect<- subsetByRanges
###   head,Vector-method head.Vector tail,Vector-method tail.Vector
###   aggregate,ts-method rename rename,Vector-method rename,vector-method

showClass("Vector")  # shows (some of) the known subclasses

### Title: Compare, order, tabulate vector-like objects
### Aliases: Vector-comparison compare ==,Vector,Vector-method
## See ?`Ranges-comparison` for more examples (using Ranges objects).
## B. FOR DEVELOPPERS: HOW TO IMPLEMENT THE BINARY COMPARISON OPERATORS
## The answer is: don't implement them. Just implement compare() and the
## binary comparison operators will work out-of-the-box. Here is an
## (1) Implement a simple Vector subclass.
## (2) Implement a "compare" method for Raw objects.

function(x, i, j, ..., drop) { x@data <- x@data[i]; x }
function(x, y) {as.integer(x@data) - as.integer(y@data)}
stopifnot(identical(which(x == x[1]), c(1L, 9L, 10L)))
stopifnot(identical(x[x < x[5]], new("Raw", data=charToRaw(".-+"))))

### Title: Summarize views on a vector-like object with numeric values
### Aliases: view-summarization-methods viewApply viewApply,Views-method
###   mean,Views-method max,Views-method min,Views-method sum,Views-method

### Aliases: class:Views Views-class subject subject,Views-method ranges
###   elementLengths,Views-method newViews Views coerce,Vector,Views-method
###   c,Views-method trim trim,Views-method subviews subviews,Views-method
## Create a set of 4 views on an XInteger subject of length 10:
## See ?`XIntegerViews-class` in the XVector package for more examples.

showClass("Views")  # shows (some of) the known subclasses
v1 <- Views(subject, start=4:1, end=4:7)