pluralise | R Documentation |
This function chooses the singular or plural form of a word based on the length of an associated vector, or an integer.
pluralise(singular, x = NULL, n = NULL, plural = NULL)
singular |
The singular form of the word. |
x |
A vector of any mode, whose length is used to choose the correct
word form, unless |
n |
An integer which is used to choose the correct word form (singular
if n = 1, plural otherwise). Take priority over |
plural |
The plural form of the word. If |
Either singular
or plural
, as appropriate.
Jon Clayden
Please cite the following reference when using TractoR in your work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v044.i08")}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.