Elegant correlation table using xtable R package - Easy ...
sthda.com › english › wikiTo get the lower or the upper part of a correlation matrix, the R function lower.tri () or upper.tri () can be used. The formats of the functions are : lower.tri (x, diag = FALSE) upper.tri (x, diag = FALSE) - x : is the correlation matrix - diag : if TRUE the diagonal are not included in the result. The two functions above, return a matrix of logicals which has the same size of a the correlation matrix.