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

This routine returns a matrix containing all the unique rows of the matrix supplied as its argument. That is, all the duplicate rows are stripped out. Note that the ordering of the rows on exit is not the same as on entry. It also returns an index attribute for relating the result back to the original matrix.

1 | ```
uniquecombs(x)
``` |

`x` |
is an |

Models with more parameters than unique combinations of covariates are not identifiable. This routine provides a means of evaluating the number of unique combinations of covariates in a model. The routine calls compiled C code.

A matrix consisting of the unique rows of `x`

(in arbitrary order).

The matrix has an `"index"`

attribute. `index[i]`

gives the row of the returned
matrix that contains row i of the original matrix.

Simon N. Wood simon.wood@r-project.org

`unique`

can do the same thing, including for
non-numeric matrices, but more slowly and without returning the
index.

1 2 3 4 5 6 |

```
Categorical Regression Splines (version 0.15-27)
[vignette("crs_faq") provides answers to frequently asked questions]
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE
3: .onUnload failed in unloadNamespace() for 'rgl', details:
call: fun(...)
error: object 'rgl_quit' not found
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 1 2 3
[3,] 4 5 6
[4,] 1 3 2
[5,] 4 5 6
[6,] 1 1 1
[,1] [,2] [,3]
[1,] 1 1 1
[2,] 1 2 3
[3,] 1 3 2
[4,] 4 5 6
attr(,"index")
[1] 2 2 4 3 4 1
[1] 4 5 6
[1] 4 5 6
```

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.