#create a toy LHD with 5 rows and 3 columns
toy=rLHD(n=5,k=3);toy
#Calculate the inter-site distance of the 2nd and the 4th row of toy (with default q)
dij(X=toy,i=2,j=4)
#Calculate the inter-site distance of the 2nd and the 4th row of toy (with q=2)
dij(X=toy,i=2,j=4,q=2)
Run the code above in your browser using DataLab