| c.catalogue {ssBase} | R Documentation |
Combines two catalogues together to form a new catalogue. Provides a method for the generic function c.
## S3 method for class 'catalogue':
c(x, y, catname,
vars=c("time", "longitude", "latitude", "depth", "magnitude"),
..., recursive = FALSE)
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. |
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.
NULL. The assignment takes place within the function.
as.catalogue, rbind.data.frame
data(NZ55)
c(NZ55[1:10,], NZ55[101:120,], catname="x",
vars=c("time", "longitude", "magnitude"))
print(x)