Entering edit mode
my1stbox
▴
40
@my1stbox-6702
Last seen 10.2 years ago
Hi All,
It seem that I can never get the returned values of 'paste0' been
evaluated , as well as any characters that have been quoted. Do I have
to use 'substr' or 'gsub' to remove these quotation marks ?
Bests,
Allen Chiu
> eval(paste0('1','+','1'))
[1] "1+1"
> eval(expression(paste0('1','+','1')))
[1] "1+1"
> eval(expression("1+1"))
[1] "1+1"
> eval("1+1")
[1] "1+1"
> eval(expression(1+1))
[1] 2
> eval(1+1)
[1] 2
2014-08-20
[[alternative HTML version deleted]]