added conditional if the R analysis contains only 2 samples