R_clusterAtrialFibrillation with tutorial in code AMC