Description Usage Arguments Details Value Author(s)

View source: R/matchMulti-internal.R

Given a vector of variables of interest for students in a single school, extracts a single value for the school

1 | ```
agg(x)
``` |

`x` |
a vector containing student-level observations for a school. If it is a factor it must contain only a single level. |

If the input is numeric, `agg`

returns the mean; if the input is not numeric, an error will be thrown unless all values are the same, in which case the single unique value will be returned.

A single value of the same type as the input vector.

Luke Keele, Penn State University, [email protected]

Sam Pimentel, University of Pennsylvania, [email protected]

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.