squish | R Documentation |
This can be used with group_by() to transform data to a "higher" level with hierarchically structured data. For instance, one person may have multiple web visits, where all visits would have the same age and gender. Getting to the person-level data (each observation is a person) would require 'summarising'. squish() throws up an error message if values differ.
squish(x)
x |
A vector to be passed through, can be numeric or character. |
## Not run:
squish(c(1,2,1))
## End(Not run)
squish(c(1,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.