+ 1
Quote from the lesson: "The main difference between tapply and by is that tapply returns a matrix, while by returns an object, which can be converted to a list." We use tapply() because it output in the format that is necessary to pass the test case
29th Jan 2022, 10:19 PM
Lisa
Lisa - avatar