SortingPartition: Creates an object of class 'SortingPartition'

Description Usage Arguments Details Value Examples

View source: R/SortingPartition.r

Description

Returns an object of class SortingPartition from an array containing the partitions.

The array has stimuli as rows and subjects as columns. For a subject, two stimuli in the same group are coded by the same number.

Usage

1
  SortingPartition(DataSort)

Arguments

DataSort

A dataframe containing the partitions of the subjects

Details

The first row contains the labels of subjects and the first column contains the labels of stimuli.

In the case of multiple sorting task, the different partitions given by the same subject are in columns sharing the same name (but with different subnames: A, A.1, A.2...) in the array.

A value of 0 indicates that the subject did not sort the given stimulus (in case of incomplete design).

Value

An object of class SortingPartition.

Examples

1
2
3

Example output

Loading required package: smacof
Loading required package: plotrix

Attaching package: 'smacof'

The following object is masked from 'package:base':

    transform

Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.5-4
Loading required package: ellipse

Attaching package: 'ellipse'

The following object is masked from 'package:graphics':

    pairs

Free sorting of 16 stimuli by 31 subjects.
_________________________________

Partitions given by the first subjects : 
                S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S13 S14 S15
Lemon            5  1  4  1  1  1  1  2  3   1   1   1   1   4   2
Grapefruit       5  3  5  1  2  1  2  2  3   1   1   1   1   4   2
Pineapple        4  1  5  1  5  1  2  1  1   1   5   1   1   1   1
Pear             5  1  5  1  1  3  2  2  1   2   1   1   1   1   1
Honey            4  2  3  2  3  6  3  5  2   3   7   2   1   4   5
Butter           1  4  5  2  3  5  3  5  4   4   4   5   2   4   9
Grilledbread     1  2  3  5  5  5  3  3  2   3   9   2   3   2   3
Grilledhazelnut  5  2  3  2  5  5  3  3  4   3   6   2   3   2   3
Strawberry       5  1  5  1  1  2  2  1  1   2   1   1   1   1   6
Raspberry        3  3  4  4  1  2  2  1  4   4   1   1   1   1   1
Cherry           3  3  5  3  5  6  1  1  1   2   2   1   3   3   7
Blackcurrant     3  4  4  3  4  5  2  5  4   3   7   1   2   4   1
Greenpepper      4  3  1  4  4  3  3  4  2   5   8   2   1   3   4
Smoked           2  2  2  4  3  4  3  4  7   3   3   3   5   2   4
Pepper           2  2  2  1  2  3  1  2  6   5   5   4   4   3   8
Licorice         2  4  3  4  2  4  3  3  5   4   7   3   5   3   5
_______________________________

FreeSortR documentation built on May 2, 2019, 2:47 p.m.