R/defineData.R

defineData <- function(data, 
                       sparseMatrix = FALSE, 
                       binary = FALSE, 
                       minimum = 0.5, 
                       maximum = 5, 
                       intScale = TRUE, 
                       positiveThreshold = 3) {
    
  if(sparseMatrix){
    
    defineSparseMat(data,
                    binary, 
                    minimum, 
                    maximum, 
                    intScale, 
                    positiveThreshold)
                       
  }else{
    
    defineMat(data,
              binary, 
              minimum, 
              maximum, 
              intScale, 
              positiveThreshold)
                 
  }
    
} 

Try the rrecsys package in your browser

Any scripts or data that you put into this service are public.

rrecsys documentation built on June 10, 2019, 1:02 a.m.