Re: [R] Using evaluate-deparse-substitute
Adaikalavan Ramasamy wrote: Being the lazy soul I am, I wish to write a function to replace saying ls(pattern=...) everytime. Here is what I have: lsp <- function(x){ y <- eval(deparse(substitute(x))) print(y) # CHECK print( ls(pattern = eval(y)) )
[R] Using evaluate-deparse-substitute
Being the lazy soul I am, I wish to write a function to replace saying ls(pattern=...) everytime. Here is what I have: lsp <- function(x){ y <- eval(deparse(substitute(x))) print(y) # CHECK print( ls(pattern = eval(y)) )# TRY 1 prin