Look at the function vegdist in the library vegan. It does Bray-Curtis and other common ecological distance measures. HTH, Andy