c2str: Sequence of rational numbers into comma separated string

View source: R/c2str.R

c2strR Documentation

Sequence of rational numbers into comma separated string

Description

Convert a sequence of rational numbers into a string separated with a comma where the fractions are in backslash form.

Usage

c2str(x)

Arguments

x

a list of rational numbers.

Details

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.

Value

The output is a string of rational numbers with backslash denoting division.

See Also

c2strpm

Examples

 x <- sample(c(1:100),5)/100
 x
 c2str(x)


Tex4exams documentation built on May 31, 2023, 8:04 p.m.

Related to c2str in Tex4exams...