Calculates the fold-changes between two samples. Calculated as mean(group2) / mean(group1)
     
    
    Usage
    get.foldchange(x, group1, group2, logged = TRUE);
 
     
    
    Arguments
    - x
 
Vector of numbers to analyze
 
  - group1
 
Vector of TRUE/FALSE indicating which are the x samples for the fold-changes
 
  - group2
 
Vector of TRUE/FALSE indicating which are the y samples for the fold-changes
 
  - logged
 
Is the data in log-space or in normal-space?
 
 
    
    Value
    calculate the fold change of group1 relating to group2
     
    
    
    Examples
    get.foldchange(
  x = rnorm(100),
  group1 = c(rep(TRUE, 50), rep(FALSE, 50)),
  group2 = c(rep(FALSE, 50), rep(TRUE, 50))
  );
#> [1] 0.0592933