ImportData {CompR}R Documentation

Import data file

Description

Import the different paired comparison data files in cvs format and create an object
of class DataPairComp

Usage

ImportData(name,labelprod=FALSE,labelconso=NULL, sep =";",dec=".")

Arguments

name

part of name of the different data files (.csv files)

labelprod

indicate the existence of labels of the different products in data files
(default=FALSE) given in the header of each column of the data files.

labelconso

vector of label of consummers given by the user (default=NULL)

sep

the field separator character. Values on each line of the file are separated by this character.(default=";")

dec

the character used in the file for decimal points.(default=".")

Value

Object of class DataPairComp with the following elements:

Cons : corresponding to the label of consummers (default : Number of consummer)

Crit : names of the different criteria contained in the name of the different data files

Prod : names of the different products (default : number of the product)

Paircomp : list of number of criteria elements each corresponding to the results of paired comparisons performed by the consummers.


[Package CompR version 1.0 Index]