Description Usage Arguments Details Value Author(s) Examples
It calculates average sales per month, if there is a series of sales in a month and returns the average and total sales for a period, normally a year. It produces the visual of performance in a line plot for the period under review.
1 | sam(status, tgoal, dtev)
|
status |
a dataframe containing the average sales amount or a series of amounts for each month |
tgoal |
the target amount of sales for the period |
dtev |
1 or logical TRUE. It is an optional value. When it is not provided the function considers the the status argument as the average sales amount for the period |
The actual sales key performance indicator is usually presented in a visual by known Buisness Intelligence apps, as such the lines plot produced by the function contains the key indicators. And the period must start from january. Months or times without sales reckoning must be filled with zeros or NAs, if the table is read with read.table function. The function only reckons with yearly sales starting from January and ending in December
comp1 |
a line plot graphic of performance |
comp2 |
a string describing whether sales target is achieved or otherwise |
comp3 |
a dataframe object containing the period sales average and total |
Abubakar Akanbi
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.