Description Usage Arguments Details Value Additional Usage Author(s) Examples
AssetReturns contains some meta-data for asset returns objects.
1 |
... |
Used by lambda.r |
This is a thin wrapper around a zoo object containing portfolio returns. It is used to type the zoo object based on the business domain, as opposed to the programming mechanics.
AssetReturns(symbols, obs = NULL, start = NULL, end = Sys.Date(), fun = function(x) Delt(Cl(x)), reload = FALSE, na.value = NA, ...)
An AssetReturns object
symbols - A vector of symbols to load
obs - Number of total observations to load
start - Start date of data to load
end - End date of data to load
fun - Function to apply to calculate returns
reload - Should existing downloaded data be reloaded?
na.value - Value to use for NAs
... - Additional arguments
Brian Lee Yung Rowe
1 | ## Not run: returns <- AssetReturns(c('BAC','JPM','C','GS','MS'), 90)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.