R/RV_table.R

#' RV_table
#'
#' To evaluate the similarities between each pair of tables among all tables in the dataset
#'
#' @include RV.R
#' @param dataset a data frame or matrix
#' @param sets list of vectors indicating the sets of variables (i.e. the blocks).
#'
#' @return a matrix
#'
#' @export

RV_table = function(dataset, sets){
  tables = lapply(sets, function(x){dataset[,x]})
  sapply(tables, function(t){sapply(tables, function(x){RV(t,x)})})
}
Rui1521/R-package-for-Multiple-Factor-Analysis documentation built on May 25, 2019, 1:29 p.m.