# NOT RUN {
f1 <- function(x) {x*x}
f2 <- function(x,y) {x+y}
## A data frame is returned: 1 row, 4 columns
SimilaR_fromTwoFunctions(f1,
f2,
returnType = "data.frame",
aggregation = "tnorm")
## Custom names in the returned data frame
SimilaR_fromTwoFunctions(f1,
f2,
functionNames = c("first", "second"),
returnType = "data.frame",
aggregation = "tnorm")
## A data frame is returned: 1 row, 5 columns
SimilaR_fromTwoFunctions(f1,
f2,
returnType = "data.frame",
aggregation = "both")
## A non-symmetric square matrix is returned,
## with 2 rows and 2 columns
SimilaR_fromTwoFunctions(f1,
f2,
returnType = "matrix",
aggregation = "both")
# }
Run the code above in your browser using DataLab