I am trying to write a program with the function findOutliers to return a vector with either the outliers or the index of the outliers. The function should accept an optional named, boolean argument called "values". If values is True, then return the actual outliers. If values is False, return the numeric indices of the outliers.
I have no idea where to start. Please help:/