2012-09-25から1日間の記事一覧
元ネタ -> r - Quick question: cast function argument as a character string? - Stack Overflowdeparse と substitute を使うと実引数を文字列化できる。 > f <- function(x) deparse(substitute(x)) > f(1) [1] "1" > f(x) [1] "x" > f(list(x=3)) [1] "…
元ネタ -> r - Quick question: cast function argument as a character string? - Stack Overflowdeparse と substitute を使うと実引数を文字列化できる。 > f <- function(x) deparse(substitute(x)) > f(1) [1] "1" > f(x) [1] "x" > f(list(x=3)) [1] "…