Description Usage Arguments Value Examples
Compute basic summary statistics for holdings data for each strategy, date and id
1 | summarize_position(position, groups = NULL, ...)
|
position |
A data.frame object containing holdings information. It is assumed to be generated using |
groups |
character vector of the names of the variables that will be used with grouping and computing statistics
Variable names must be quoted (an inconvenience used to avoid confusion with the commands passed to |
... |
Commands to be passed to |
A data.frame object with the summary statistics. By default it returns a data.frame indicating the group and columns
sum_mon: The sum of the valuation of the group
perc_median: The median of the percentage of the total valuation
perc_mean: The mean of the percentage of the total valuation
perc_sd: The standard deviation of the percentage of the total valuation
The result of additional commands supplied by the user
1 2 3 | position <- get_position(fecha = c("2016-07-28", "2016-07-29"))
summarize_position(position, groups = c("fecha", "carteramodelo", "id"), count = length(contrato))
summarize_position(position, groups = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.