Re: [R] Using evaluate-deparse-substitute

2003-02-20 Thread Uwe Ligges
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

2003-02-20 Thread Adaikalavan Ramasamy
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