export.txt.fnc

Objetive

Exports databases R session format tab-delimited plain text () to an external file with user-defined name.

Export to txt file

We will use the directly available in R database OBrienKaiser .

export.txt.fnc(OBrienKaiser, name='obrienkaiser')

We store the database in a file OBrienKaiser txt format, named obrienkaiser (user must skip the txt extension) Tab delimited. The default decimal character is the comma (,).

Now we can read the external file exported with the function:

OKaiser= read.file.fnc('obrienkaiser.txt',

separator='tab',

have.names=T,

decimal=',')

If we want the file has the extension csv (suitable to be read from LibreOffice Calc) we indicate it making true that argument. In this example also we wish that missing values are labeled by the dot character (default is an empty cell).

export.txt.fnc(OBrienKaiser, name='obrienkaiser', csv=T, mis='.')