PCsaveWPX: Save WPX list

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/PCsaveWPX.R

Description

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

Usage

1
PCsaveWPX(twpx, destdir = ".")

Arguments

twpx

WPX list

destdir

character, destination directory, default=getwd()

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.

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<[email protected]>

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
s1 = setWPX(name="HI", yr=2011, jd=231, hr=4, mi=3, sec = runif(5)) 
hh = PCsaveWPX(s1)

###   read in the data
load(hh)

data.frame(twpx)

## End(Not run)

Rquake documentation built on May 29, 2017, 3:02 p.m.