# Constructing a Gibbs sampler for Two component mixture model [closed]

The usual two-component Normal mixture model is instructed in these slides http://www2.stat.duke.edu/~rcs46/modern_bayes17/lecturesModernBayes17/lecture-8/08-data-augment.pdf.

We define Latent allocation variables $$Z_i$$. But how to implement the R code for full conditions of $$\mu_0$$ and $$\mu_1$$?