RosettaCodeData/Task/Scope-modifiers/R/scope-modifiers-2.r

6 lines
113 B
R
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
d <- data.frame(a=c(2,4,6), b = c(5,7,9))
attach(d)
b - a #success
detach(d)
b - a #produces error