I would like to calculate the distance matrix of the rows in an array in R using Tanimoto/Jacquard Score as distance matrix.

Is it possible to be done? If yes, could you mind to teach me how to do it?