Description Usage Arguments Details Value

Substracts the mean or median from observations belonging to the same level of a factor.

1 | ```
allignment(response, block, type = c("mean", "median"), ...)
``` |

`response` |
a numeric vector |

`block` |
a factor of the same length as |

`type` |
type of location measure to calculate and substract; only the choices "mean" and "median" are supported |

`...` |
further arguments to be passed to |

Splits `response`

according to the levels of `block`

, calculates and substracts the mean or median and returns the resulting vector in appropriate order.

A numeric vector.

BSagri documentation built on May 29, 2017, 10:49 p.m.

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.