Create Data Object for Modelling
buildData.RdCreate one data object from multiple sources, applying transformations via standard R formula mechanism.
Arguments
- formula
an object of class
formula(or one that can be coerced to that class): a symbolic description of the desired output data object, with thedependentside corresponding to first column, and theindependentparameters of the formula assigned to the remaining columns.- na.rm
drop rows with missing values?
- return.class
one of "zoo","data.frame","ts","timeSeries"
Details
Makes available for use outside the quantmod workflow a dataset
of appropriately transformed variables, using the same mechanism
underlying specifyModel. Offers the ability to apply transformations
to raw data using a common formula mechanism, without having to explicitly
merge different data objects.
Interally calls specifyModel followed by modelData, with the
returned object being coerced to the desired 'return.class' if possible,
otherwise returns a zoo object.
See getSymbols and specifyModel for more information
regarding proper usage.