I have all the pairwise correlations and would like to construct the var-covariance matrix in order to do some standard analysis on that matrix. Here's a sample data for the covariances, the first two columns are the "ids" while the third column shows the covariance between the "ids".
data<-data.frame("id1" = c("a","b","c","a","a","b"),
"id2" = c("a","b","c","b","c","c"),
"cov"=c(1,1,1,0.1,0.3,0.4))