subscript: Subscript

Description Usage Arguments Details Value See Also

Description

Generic function for subscripting data objects. ss is a synonym for subscript.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
subscript(x, i, ...)

ss(x, i, ...)

## Default S3 method:
subscript(x, i, ...)

## S3 method for class 'data.frame'
subscript(x, i, ...)

## S3 method for class 'dist'
subscript(x, i, ...)

## S3 method for class 'phylo'
subscript(x, i, ...)

## S3 method for class 'speciesList'
subscript(x, i, ...)

## S3 method for class 'longDist'
subscript(x, i, reOrder = TRUE, ...)

## S3 method for class 'poly.data.frame'
subscript(x, i, ...)

Arguments

x

An object with data to be subscripted.

i

Indices for the dimensions of replication of x.

...

Not used.

reOrder

should the order be arranged to be consistent with dist objects?

Details

Data frames are subscripted by rows (i.e. replicates) only.

Value

A subscripted version of x.

See Also

Specific subscript methods are available for data.frame, dist, phylo, speciesList, longDist, and poly.data.frame objects. The subscript-package help page has many examples.


stevencarlislewalker/subscript documentation built on May 30, 2019, 4:45 p.m.