Miscellanea

DiffinDiffsBase.cbMethod
cb(args...)

Construct a vector from ConstantTerms provided as arguments. This method is useful for working with @formula.

Note that @formula does not accept function calls with empty argument. Hence, cb() cannot be used to create an empty vector [] in the expression passed to @formula. However, passing cb (without the parenthesis) to @formula will return [] due to unpack.

DiffinDiffsBase.exampledataMethod
exampledata(name::Union{Symbol,String})

Return a CSV.File containing the example dataset with the specified name.

DiffinDiffsBase.kwargMethod
kwarg(v)

Return a key-value Pair with the key being a keyword argument name and the value being v. The key is determined by the type of v.

DiffinDiffsBase.unpackMethod
unpack(t::Term)

If t.sym is the name of an object defined in Main, either call its method with no argument if it exists or return the object itself. Otherwise, return t.sym.

DiffinDiffsBase.@fieldequalMacro
@fieldequal Supertype

Define a method of == for all subtypes of Supertype such that == returns true if two instances have the same field values.

DiffinDiffsBase.@unpackMacro
@unpack functionname

Define a method of functionname that accepts terms generated by @formula as arguments. This method can be used to translate terms into arguments that match the other methods of functionname. Each term is processed by unpack and kwarg.