50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


compositions (version 1.01-1)

mix.Read: Reads a data file in a mixR format

Description

Reads a data file, which is formatted in a simple compositional file including the first row with title, the second with data labels and afterwards the matrix with the data itself. In the first column of the matrix are cases labels. This is the format used in the mixR package.

Usage

mix.Read(file,eps=1e-6)

Arguments

file
a file name
eps
the epsilon to be used for checking null values.

Value

  • A mixture object as a data frame with a title, row total, if constant, status (-2, -1, 0, 1, 2 or 3 -- see above) and class attributes and the data matrix.

tabular

rll

tab

-2 - matrix contains negative elements, -1 - zero row sum exists, 0 - matrix contains zero elements, 1 - matrix contains positive elements, rows with different row sum(s), 2 - matrix with constant row sum and 3 - closed mixture, the row sums are all equal to 1.

Details

The data files must have the adequate structure:
  • 1
{the first row with a title of the data set,} 2{the second row with variables names} 3{the data set in a matrix, rows as cases, variables in columns with the firs colum comprising cases labels.}

See Also

read.geoeas read.geoEAS read.table

Examples

Run this code
mix.Read("GLACIAL.DAT")
  mix.Read("ACTIVITY.DAT")

Run the code above in your browser using DataLab