# NOT RUN {
amacrine
# Randomly permute the marks "on" and "off"
# Result always has 142 "off" and 152 "on"
Y <- rlabel(amacrine)
# randomly allocate marks "on" and "off"
# with probabilities p(off) = 0.48, p(on) = 0.52
Y <- rlabel(amacrine, permute=FALSE)
# randomly allocate marks "A" and "B" with equal probability
Y <- rlabel(cells, labels=factor(c("A", "B")), permute=FALSE)
# divide the window into tiles and
# randomly permute the marks within each tile
Z <- rlabel(amacrine, group=quadrats(Window(amacrine), 4, 3))
# }
Run the code above in your browser using DataLab