How can I extract the last element in a local (without knowing how many elements the local has)
Code:
local list one two three four last
range() invalid -- invalid numlist
sysuse auto.dta, replace local bins 30 35 40 45 50 local min word("`bins'", 1) local max word("`bins'", -1) disp `min' disp `max' twoway scatter displacement turn, xscale(range(30 50)) twoway scatter displacement turn, xscale(range(`min' `max'))
Comment