Hello an thanks for the help.
I want to convert the expression: x / y (e.g. 1298 / 1109) into a character vector: "x / y" (e.g. "1298 / 1109") using R.
I have tried it with as.character(x/y) and with as.character.Date(x/y) but this only turns the result of the fraction into a character vector.
>Solution :
Do you mean this?
> deparse(quote(1298 / 1109))
[1] "1298/1109"
or
> f <- function(x) deparse(substitute(x))
> f(1298 / 1109)
[1] "1298/1109"