In the last video we saw how we could use apply()
to extract column or row means (though colMeans()
would work for that also). Here we'll explore tapply()
and aggregate()
, which can be used to apply a function to subsets of the data; for example to extract group means.
User Preferences
Content Preview
Arcu felis bibendum ut tristique et egestas quis:
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
- Duis aute irure dolor in reprehenderit in voluptate
- Excepteur sint occaecat cupidatat non proident
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit molestiae mollitia
laudantium assumenda nam eaque, excepturi, soluta, perspiciatis cupiditate sapiente, adipisci quaerat odio
voluptates consectetur nulla eveniet iure vitae quibusdam? Excepturi aliquam in iure, repellat, fugiat illum
voluptate repellendus blanditiis veritatis ducimus ad ipsa quisquam, commodi vel necessitatibus, harum quos
a dignissimos.
Keyboard Shortcuts
- Help
- F1 or ?
- Previous Page
- ← + CTRL (Windows)
- ← + ⌘ (Mac)
- Next Page
- → + CTRL (Windows)
- → + ⌘ (Mac)
- Search Site
- CTRL + SHIFT + F (Windows)
- ⌘ + ⇧ + F (Mac)
- Close Message
- ESC