Cld function in multcomp package

Did you use

library(multicomp) 

before using the cld function