Description Usage Arguments Value Author(s)
This function will reformat and order visit names for use in factors; it also allows modifying case and excluding some levels.
1 | sortlevels(all.visits, pre.levels, excluded.levels, title.case=TRUE)
|
all.visits |
A vector of all visit names to sort and format. |
pre.levels |
A vector of visit levels that should precede the rest (e.g. screening or pre-study visits) in ordering. |
excluded.levels |
A vector of visit names that should be excluded from the factor levels. |
title.case |
Logical. Should the names of the factor levels use title case? |
A vector of visit levels, sorted and formatted, potentially with exclusions.
Ben Rich, benjamin.rich@certara.com with edits by Ryan Kyle, ryan.kyle@mail.mcgill.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.