extract tags for data frame and lm