Skip to content
Prev 175705 / 398503 Next

Variable Wildcard Value

Francis Smart wrote:
w <- wildcard()

Note that it answers your previous question, but not this one.

This is untested because we do not have your data, but you could go with 
something like that, assuming the variables "tontype", "SLV_DIE_PER", 
"SLV_PER_TON" are in the data frame "data". That way, you seperate your 
model to the data it is applied to:

with( subset( data, tontype == TONNAGE_TYPE ), lm( SLV_DIE_PER ~ 
SLV_PER_TON ) )

Not sure how the wildcard you asked for in your first email fits into this.

Romain