Description Usage Arguments Details Value Author(s) See Also Examples
This function writes a chronology to a file in one of the available formats.
1 |
rwl.df |
a |
fname |
a |
format |
a |
... |
arguments specific to the function implementing the operation for the chosen format. |
This is a simple wrapper to the functions actually implementing the write operation.
fname
Mikko Korpela
write.crn
, write.tucson
,
write.compact
, write.tridas
,
read.rwl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(utils)
data(co021)
co021.hdr <- list(site.id = "CO021",
site.name = "SCHULMAN OLD TREE NO. 1, MESA VERDE",
spp.code = "PSME", state.country = "COLORADO",
spp = "DOUGLAS FIR", elev = 2103, lat = 3712,
long = -10830, first.yr = 1400, last.yr = 1963,
lead.invs = "E. SCHULMAN", comp.date = "")
fname <- write.rwl(rwl.df = co021, fname = tempfile(fileext=".rwl"),
format = "tucson", header = co021.hdr,
append = FALSE, prec = 0.001)
print(fname) # tempfile used for output
unlink(fname) # remove the file
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.