Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.character-methods

Get Basic Information on a Fuzzy Number in a String


Description

This method is especially useful if you would like to generate LaTeX equations defining a fuzzy numbers.

Usage

## S4 method for signature 'FuzzyNumber'
as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

## S4 method for signature 'TrapezoidalFuzzyNumber'
as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

## S4 method for signature 'PiecewiseLinearFuzzyNumber'
as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

## S4 method for signature 'PowerFuzzyNumber'
as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

Arguments

x

a fuzzy number

toLaTeX

logical; should LaTeX code be output?

varnameLaTeX

character; variable name to be included in equations

Details

Consider calling the cat function on the resulting string.

Thanks to Jan Caha for suggesting the toLaTeX arg.

Value

Returns a character vector.

See Also


FuzzyNumbers

Tools to Deal with Fuzzy Numbers

v0.4-6
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre], Jan Caha [ctb]
Initial release
2019-02-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.