R substitute on expression with assignment -
why these 2 cases behave differently?
>substitute(c1<-100,list(c1=100)) 100 <- 100
vs
> substitute(c1=100,list(c1=100)) [1] 100
as understand assignops
operator =
evaluates immediately. second expression equivalent substitute(100,list(c1=100))
.
take in braces , result is
> substitute({c1=100},list(c1=100)) { 100 = 100 }
Comments
Post a Comment