fWriteDataframeToFile: fWriteDataframeToFile

View source: R/FileHandling.R

fWriteDataframeToFileR Documentation

fWriteDataframeToFile

Description

Write data frame to ASCII tab-separated text file

Usage

fWriteDataframeToFile(Data.F, FileName = FileName.s, 
    Dir = if (!missing(Dir.s)) Dir.s else "", 
    Digits = if (!missing(Digits.n)) Digits.n else 5, 
    isSplitDatetime = FALSE, FileName.s, 
    Dir.s, Digits.n)

Arguments

Data.F

Data frame

FileName

File base name as a string

Dir

Directory as a string

Digits

(integer) number of digits, i.e. precision, for numeric values

isSplitDatetime

set to TRUE to create columns Year, DoY and Hour

FileName.s

deprecated

Dir.s

deprecated

Digits.n

deprecated

Details

Missing values are flagged as -9999.0

Value

Output of data frame written to file of specified type.

Author(s)

AMM, KS, TW Department for Biogeochemical Integration at MPI-BGC, Jena, Germany <REddyProc-help@bgc-jena.mpg.de> [cph], Thomas Wutzler <twutz@bgc-jena.mpg.de> [aut, cre], Markus Reichstein <mreichstein@bgc-jena.mpg.de> [aut], Antje Maria Moffat <antje.moffat@bgc.mpg.de> [aut, trl], Olaf Menzer <omenzer@bgc-jena.mpg.de> [ctb], Mirco Migliavacca <mmiglia@bgc-jena.mpg.de> [aut], Kerstin Sickel <ksickel@bgc-jena.mpg.de> [ctb, trl], Ladislav <U+0160>igut <sigut.l@czechglobe.cz> [ctb]

See Also

help_export fSplitDateTime

Examples

(Dir <- tempdir())   # directory where output is written to
fWriteDataframeToFile(Example_DETha98, 'OutputTest.txt', Dir = Dir)

REddyProc documentation built on May 29, 2024, 12:10 p.m.