insertInto-methods function

Function that inserts FuzzyData on specific column number in another FuzzyData

Function that inserts FuzzyData on specific column number in another FuzzyData

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.

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.

Returns

An object of class FuzzyData

Examples

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)