Description Usage Arguments Details Value Author(s) Examples

Generates random sequences.

1 |

`n` |
number of sequences to generate |

`length` |
sequences length |

`alphabet` |
the alphabet from which the sequences are generated |

`p` |
an optional vector of probabilities for the states in the alphabet. Must be of the same length as the alphabet. If not specified, equal probabilities are used. |

Each sequence is generated by choosing a set of random numbers (with min=1 and max=length of the alphabet) using the `runif`

function. When the probability distribution is not specified, the uniform probability distribution giving same probability to each state is used to generate the sequences.

a sequence object.

Alexis Gabadinho (with Gilbert Ritschard for the help page)

1 2 |

TraMineR documentation built on May 21, 2017, 12:47 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.