c2str | R Documentation |
Convert a sequence of rational numbers into a string separated with a comma where the fractions are in backslash form.
c2str(x)
x |
a list of rational numbers. |
The output string was originally designed for 'string' type answers of 'R/exams' when a sequence of rational numbers are the answers from multiple parts of the question.
The output is a string of rational numbers with backslash denoting division.
c2strpm
x <- sample(c(1:100),5)/100
x
c2str(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.