c2str {Tex4exams} | 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.
x <- sample(c(1:100),5)/100
x
c2str(x)