R - get(): retrieve value of a named object

14 Aug 2019

get() returns the value of a named object

Using get() may be shorter than eval(parse()).

zz <- 2
get("zz")
#[1] 2
eval(parse(text = "zz"))
#[1] 2
[ R  function  ]