search for: mydeparse

Displaying 3 results from an estimated 3 matches for "mydeparse".

Did you mean: deparse
2016 Apr 13
0
formula argument evaluation
...tree, as in > str.language(quote(A + B %=>% C)) `quote(A + B %=>% C)` call(3): A + B %=>% C `` name(1): + `` name(1): A `` call(3): B %=>% C `` name(1): %=>% `` name(1): B `` name(1): C str.language <- function (object, ..., level = 0, name = myDeparse(substitute(object))) { abbr <- function(string, maxlen = 25) { if (length(string) > 1 || nchar(string) > maxlen) paste(substring(string[1], 1, maxlen), "...", sep = "") else string } myDeparse <- function(object) { if (...
2016 Apr 13
2
formula argument evaluation
I suppose it would work, although "=>" is rather a descriptive symbol and less a function. But choosing between quoting: "A + B => C" and a regular function: A + B %=>% C probably quoting is the most straightforward, as the result of the foo() function has to be a string anyways (which is parsed by other functions). On Tue, Apr 12, 2016 at 6:20 PM, Richard M.
2011 Jan 14
1
Help on a Display function
> I wanted to simulate the Matlab DISPLAY function for some time now. After seeing a recent proposal by Gabor Grothendieck I came up with the following solution, display <- function(...) { my_names <- lapply(substitute(placeholderFunction(...))[-1], deparse) for (my in my_names) cat(my, "=", eval(parse(text=my)), "\n", sep=" ") } that works about as