# nobars

From lme4 v1.1-21
by Ben Bolker

##### Omit terms separated by vertical bars in a formula

Remove the random-effects terms from a mixed-effects formula, thereby producing the fixed-effects formula.

##### Usage

`nobars(term)`

##### Arguments

- term
the right-hand side of a mixed-model formula

##### Value

the fixed-effects part of the formula

##### Note

This function is called recursively on individual terms
in the model, which is why the argument is called
`term`

and not a name like `form`

, indicating a
formula.

##### See Also

`formula`

, `model.frame`

,
`model.matrix`

.

Other utilities: `findbars`

,
`mkRespMod`

, `mkReTrms`

,
`nlformula`

, `subbars`

##### Examples

```
# NOT RUN {
nobars(Reaction ~ Days + (Days|Subject)) ## => Reaction ~ Days
# }
```

*Documentation reproduced from package lme4, version 1.1-21, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.