load.file {Saturnin} | R Documentation |
Loads data stored in a tab-delimited ASCII text file.
load.file()
In the text file, the first line contains names for the variables/data columns
(except for the first one that is automatically assumed to contain the sample
names). Hence the first line must have one item less than the following ones.
The data rows start with sample name and do not have to be all of the same length
(the rest of the row is filled by 'NA
' automatically).
Missing values ('NA
') are allowed anywhere in the data file (naturally
apart from sample and column names).
The data files can be practically freeform, i.e. no specified oxides/elements
are required and no exact order of these is to be adhered to. Extra columns not
required by the calculation algorithms are ignored. Analyses can
contain as many numeric columns as necessary, the names of oxides and trace
elements are self-explanatory (e.g. 'SiO2', 'Fe2O3', 'Rb', 'Nd'
).
Note that names of variables are case sensitive in R and that each of the sample and variable names need to be unique.
Data frame with the loaded data
Vojtech Janousek