PCsaveWPX {Rquake}R Documentation

Save WPX list

Description

Save a WPX list to a file on the local file system.

Usage

PCsaveWPX(twpx, destdir = NULL)

Arguments

twpx

WPX list

destdir

character, destination directory, default=NULL

Details

Creates a file with the list as in native binary format. This file can be loaded with the standard load function in R. The name of the file is created by using the minimum time extracted from the WPX list. The suffix on the file name is RDATA. When reading in, the object created is named "twpx" for further processing.

destdir must be set, otherwise the destination directory will be temporary. Typically this is set to a local directory where the user has write access.

Value

Side effects on file system. The name of the output file is returned.

Note

User must have write access to the destination directory.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

RSEIS::addWPX, RSEIS::catWPX, RSEIS::checkWPX, RSEIS::cleanWPX, RSEIS::clusterWPX, RSEIS::repairWPX, RSEIS::setWPX

Examples


#####  save files as RDS to users disk

s1 = RSEIS::setWPX(name="HI", yr=2011, jd=231, hr=4, mi=3, sec = runif(5))

hh = PCsaveWPX(s1, destdir= tempdir() )

###   read in the data
twpx = readRDS(hh)

data.frame(twpx)


[Package Rquake version 2.5-1 Index]