Learn R Programming

RSEIS (version 3.7-4)

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()

Value

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

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.

See Also

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

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
s1 <- setWPX(name="HI", yr=2011, jd=231, hr=4, mi=3, sec = runif(5)) 
hh <- saveWPX(s1)

###   read in the data


load(hh)

data.frame(twpx)



# }
# NOT RUN {
# }

Run the code above in your browser using DataLab