Description Usage Arguments Value Examples

Compute median and quartiles and put together.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |

`x` |
Data for computation. |

`nround` |
Number of digits for fixed round. |

`probs` |
Quantiles to compute. |

`qtype` |
Type of quantiles. |

`roundDig` |
Number of relevant digits for roundR. |

`drop0` |
Should trailing zeros be dropped? |

`groupvar` |
Optional grouping variable for subgroups. |

`range` |
Should min and max be included in output? |

`rangesep` |
How should min/max be separated from mean+-sd? |

`rangearrow` |
What is put between min -> max? |

`prettynum` |
logical, apply prettyNum to results? |

`.german` |
logical, should "." and "," be used as bigmark and decimal? |

`add_n` |
Should n be included in output? |

character vector with median `[1stQuartile/3rdQuartile]`

, rounded to desired precision

1 2 3 4 5 6 | ```
# basic usage of median_quart
median_quart(x = mtcars$wt)
# with additional options
median_quart(x = mtcars$wt, groupvar = mtcars$am, add_n = TRUE)
data(faketrial)
median_quart(x=faketrial$`Biomarker 1 [units]`,groupvar = faketrial$Treatment)
``` |

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.