R/write.rwl.R

Defines functions write.rwl

Documented in write.rwl

write.rwl <-
    function(rwl.df, fname, format=c("tucson", "compact", "tridas", "sheet", "csv"), ...)
{
    ## NOTE: This function is documented to return fname.  Therefore,
    ## each branch of the switch must return fname.
    switch(match.arg(format),
           tucson = write.tucson(rwl.df, fname, ...),
           compact = write.compact(rwl.df, fname, ...),
           tridas = write.tridas(rwl.df, fname, ...),
           ## "csv" is an alias for "sheet", kept so that the two dispatchers
           ## take the same format names. See read.rwl().
           sheet = write.sheet(rwl.df, fname, ...),
           csv = write.sheet(rwl.df, fname, ...))
}

Try the dplR package in your browser

Any scripts or data that you put into this service are public.

dplR documentation built on Oct. 1, 2026, 9:07 a.m.