Learn R Programming

FuzzyAHP (version 0.9.5)

insertInto: Function that inserts FuzzyData on specific column number in another FuzzyData

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

insertInto(data1, data2, index)

# S4 method for 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab