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

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -