sq | R Documentation |

Generate binary sequences of a certain length and with a certain sum.

sq(J, s = NULL)

`J` |
length of the binary sequences |

`s` |
sum of the binary sequences (optional) |

`M` |
Matrix of binary configurations |

Francesco Bartolucci (University of Perugia)

# generage all sequence of 5 binary variables sq(5) # generage all sequence of 5 binary variables, with sum equal 2 sq(5,2)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.