num2str: num2str

View source: R/num2str.R

num2strR Documentation

num2str

Description

Converts a set of numeric variables to a list as string representation, either as decimal or fractional numebr.

Usage

num2str(..., denom = -1)

Arguments

...

numeric variables

denom

integer: denominator for fractional number

Value

a list

Examples

x <- 1
l <- num2str(x)         # returns in l$x the string representation
l <- num2str(x, y=x+1)  # returns in l$x and l$y the string representations

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.