Learn R Programming

Tex4exams (version 0.1.2)

c2strpm: Sequence of numbers into a string of TeX code with plus minus signs.

Description

Convert a sequence of numbers into a string of TeX code for the sequence with plus minus signs for each number of the sequence, where the fractions are in vertical form.

Usage

c2strpm(x)

Value

The output is a string of rational numbers with backslash denoting division and plus minus signs in front of each number.

Arguments

x

a list of rational numbers.

See Also

c2str

Examples

Run this code
x <- sample(c(1:100),5)
x
c2strpm(x)

Run the code above in your browser using DataLab