R: display vector in input format -
this question has answer here:
is there r function displays vector in 'input' format?
for example if
x <- sprintf("%s",seq(1:3))
then function produce
>unknown_function(x) [1] c("1", "2", "3")
as per d.b's comment
unknown_function <- function(x){cat(deparse(x))}
Comments
Post a Comment