Description Usage Arguments Details Value Author(s) See Also Examples

Converts two or more factors into a new factor whose value is 0 where the original factors are not all equal, and nonzero otherwise.

1 |

`...` |
One or more factors |

`binary` |
Logical |

Used mainly in regression models for data classified by
two or more factors with the same levels. By default,
operates on k-level factors to produce a new factor having k+1 levels;
if `binary = TRUE`

is specified, the result is a coarser binary
variable equal to 1 where all of the input factors are equal and 0
otherwise.

Either a factor (if `binary = FALSE`

) or a 0-1 numeric vector
(if `binary = TRUE`

).

David Firth and Heather Turner

1 2 3 4 |

gnm documentation built on May 19, 2017, 11:45 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.