Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

saveWPX

Save WPX


Description

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

Usage

saveWPX(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<jonathan.lees@unc.edu>

See Also

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

Examples

## Not run: 
tdir = tempdir()
s1 <- setWPX(name="HI", yr=2011, jd=231, hr=4, mi=3, sec = runif(5)) 
hh <- saveWPX(s1, destdir = tdir )

###   read in the data


load(hh)

data.frame(twpx)




## End(Not run)

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.