Write data frame to ASCII tab-separated text file
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
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]
Examples
(Dir <- tempdir()) # directory where output is written to
#> [1] "/tmp/Rtmp4aCLzs"
fWriteDataframeToFile(Example_DETha98, 'OutputTest.txt', Dir = Dir)
#> Number of NA convertered to '-9999': 11657
#> Wrote tab separated textfile: /tmp/Rtmp4aCLzs/OutputTest.txt