variable
If TRUE, only mathematical variables in func will be extracted, otherwise mathematical functions will be extracted.
subset.q
If TRUE, the square bracket (usually used as subsetting) is recognised as part of the attached variable. E.g. x[a:b] will be recognised as one single variable while if FALSE, square brackets are ignored and three variables x,a,b are returned.