topK

    Implements the Filtered Space-Saving algorithm for analyzing TopK, based on the reduce-and-combine algorithm from .

    This function does not provide a guaranteed result. In certain situations, errors might occur and it might return frequent values that aren’t the most frequent values.

    Arguments

    If the parameter is omitted, default value 10 is used.

    Example

    Take the OnTime data set and select the three most frequently occurring values in the AirlineID column.