Description Usage Arguments Details Value Note Author(s)
Create a periodical or historical summary or grouped dataset.
1 2 3 4 5 6 7 8 |
df |
dataset to obtain the report |
year |
year that we want to obtain the report |
select_month |
name of the month of the year that we want to obtain the report |
select_semester |
Number of the semester that we want to obtain the report 1:2 |
select_quarter |
Number of the quarter that we want to obtain the report 1:4 |
summary |
Type of report we want to obtain. |
This function allows you to return a periodical or historical summary or grouped dataset from the orignal dataframe
"This function returns different results based on the arguments summary
argument".
If summary = "SUMMARY"
, then return a historical or periodical summary.
If summary = "NOT_SUMMARY"
, then return a historical or periodical grouped dataset.
If you do not select periodicity (any argument: year, select_month, select_semester, select_quarter
) then you are bringing a historical information.
If you select more than one periodical arguments (select_month, select_semester, select_quarter
), it will return a string message, since the report is according to a specific period of time.
If you do not have a date variable in your dataset, then will return a string message.
A summary means the comparison between a selected period and the previous one, and if there is not previous period or actual period then return the summary of the period that has information.
If there is previous and actual periocity and we select to return a grouped dataset, then will return the present grouped dataset, and if there is not previous period or actual period then return the grouped dataset of the period that has information.
Eduardo Trujillo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.