sample_cluster function

Cluster sampling