Learn R Programming

etasFLP (version 2.2.2)

eqcat: Check earthquake catalog

Description

Preliminary check of the names of an earthquake catalog. summary and plot methods for earthquake catalogs are defined.

Usage

eqcat(x)
# S3 method for eqcat
plot(x,extended=TRUE,...)
# S3 method for eqcat
summary(object,extended=TRUE,...)

Value

If the catalog passes the check, then the catalog is returned in the object cat with the new class name eqcat; otherwise an error message is printed.

cat

the input catalog is returned. If the check is ok, this is an eqcat class object.

ok

A flag: TRUE if the check is ok; FALSE elsewhere.

Arguments

x

an earthquake catalog.

object

an eqcat object.

extended

if TRUE some extra summary functions are computed.

...

other arguments.

Author

Marcello Chiodi

Details

Minimal check of an earthquake catalog; checks only if it is suitable for the use as argument of the functions of etasFLP (mainly etasclass); checks only the presence of variables with the names time, lat, long, z, magn1. summary and plot methods are defined for earthquake catalogs. and the input object can be the cat output of eqcat

See Also

etasclass

Examples

Run this code
if (FALSE) {
data(italycatalog)
f=eqcat(italycatalog)
print(f$ok)
summary(f$cat)
plot(f$cat)
}

Run the code above in your browser using DataLab