stats and examples adjusted for the new dataframe output from map()