# index

From zoo v0.1-1
by Achim Zeileis

##### Extracting Index From Objects

`index`

is a generic function for extracting
the index of an object.

- Keywords
- ts

##### Usage

`index(x, ...)`

##### Arguments

- x
- an object,
- ...
- currently not used.

##### Details

`index`

is a generic function for extracting the index
of objects, currently it has a default method and a method
for `zoo`

objects which is the same as the
`time`

method for `zoo`

objects.

##### See Also

##### Examples

```
x.date <- as.POSIXct(paste("2003-02-", c(1, 3, 7, 9, 14), sep = ""))
x <- zoo(rnorm(5), x.date)
index(x)
x <- matrix(rnorm(10), ncol = 2)
index(x)
```

*Documentation reproduced from package zoo, version 0.1-1, License: GPL*

### Community examples

Looks like there are no examples yet.