Description Usage Arguments See Also

Sample from a truncated normal distribution

1 |

`n` |
Number of observations |

`mean` |
Mean |

`sd` |
Standard deviation |

`ll` |
Lower bound |

`ul` |
Upper bound |

There is a discussion and code on https://stackoverflow.com/a/14034577, and there is also the truncnorm package.

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.