insertInto-methods: Function that inserts FuzzyData on specific column number in...

Description Usage Arguments Value Examples

Description

This methods construct object FuzzyData based on two FuzzyData and index. The functions merges the sources into single output. It inserts data2 onto specific position (defined by index) in data1.

Usage

1
2
3
4
insertInto(data1, data2, index)

## S4 method for signature 'FuzzyData,FuzzyData'
insertInto(data1, data2, index)

Arguments

data1

An object of FuzzyData - data to insert into.

data2

An object of FuzzyData - data that should be inserted.

index

An integer specifying the column position on which data2 should be inserted.

Value

An object of class FuzzyData

Examples

1
2
3
4
5
6
7
8
9
values = (c(1,2,3,4,5,6,7,8,9))
values = matrix(values, nrow = 3, ncol = 3, byrow = TRUE)
fData = fuzzyData(values, single.value = FALSE)

v = (c(15,16,17))
v = matrix(v, nrow = 3, ncol = 1, byrow = TRUE)
fd = fuzzyData(v, single.value = FALSE)

fData = insertInto(fData, fd, 2)

FuzzyAHP documentation built on Dec. 6, 2019, 5:10 p.m.