some functions for fsQCA in R