c.catalogue {ssBase}R Documentation

Combine Catalogues

Description

Combines two catalogues together to form a new catalogue. Provides a method for the generic function c.

Usage

## S3 method for class 'catalogue':
c(x, y, catname,
  vars=c("time", "longitude", "latitude", "depth", "magnitude"),
  ..., recursive = FALSE)

Arguments

x catalogue name.
y catalogue name.
catname name of the new combined catalogue.
vars variable names to included in the combined catalogue. These variables must exist in catalogues x and y. By default, the names are c("time", "longitude", "latitude", "depth", "magnitude").
... not used, required for compatibility with generic function c.
recursive not used, required for compatibility with generic function c.

Details

The two catalogues are combined using rbind.data.frame. The row names of the events are prefixed with “x” for those from catalogue x and “y” for those from catalogue y. They are also sequentially numbered. The events are also sorted by time.

Value

NULL. The assignment takes place within the function.

See Also

as.catalogue, rbind.data.frame

Examples

data(NZ55)
c(NZ55[1:10,], NZ55[101:120,], catname="x",
  vars=c("time", "longitude", "magnitude"))

print(x)

[Package ssBase version 2.2-1 Index]