This function returns a data object to be used in create_table function. Each object key is a column header name and the values being a count of clips. An array of clip row names should be passed to 'rows' and an array of qualifier names should be passed to 'columns' for this to work correctly. These two fields can also take a category name if prefixed with RC_ or QC_ - similar to the formulas used in Angles e.g. RC_Player or QC_Shot_Outcome
Basic format: ["count_clips_table", [clip_row_names], [qualifier_column_names], time_start, time_end ]
In the following example, we want to create a table of key actions performed in the clip row called 'FulcrumFC'. The count_clips_table function works by calculating how many clips in the timeline exist for each given clip row name and returns a matrix corresponding to the given qualifier names. This example has one row name but you can have multiple if you wish!
e.g: ["count_clips_table", ["FulcrumFC"], ["Pass", "Tackle", "Cross", "Shot"]
The function saves all the calculations into an object and stores it into the variable. Remember to add the table to a create_table content function to display it in your report like this:
If you just wanted a list of all clips counts from your timeline use this: "clips_table": ["count_clips_table", ["all_rows"]]
If you wanted a matrix style table of clips counts by qualifiers from your timeline use this: "clips_table": ["count_clips_table", ["all_rows"], ["all_qualifiers"] ]
To refine the rows/columns you see in the table you can change "all_rows" and "all_qualifiers" lists to the specific items you need such as:
["all_rows"] --> ["Player 1", "Player 2", "Player 3", "Player 4", "Player 5"]
["all_qualifiers"] --> ["Pass", "Shot", "Tackle", "Carry"]
You can also define a start and end time which is also useful with the min_time_start and max_time_end functions - ensure you define the timing variables before you use them in this function.