fillet | R Documentation |

`fillet()`

calls `chop()`

with `extend = FALSE`

and `drop = FALSE`

. This
ensures that you get only the `breaks`

and `labels`

you ask for. When
programming, consider using `fillet()`

instead of `chop()`

.

```
fillet(
x,
breaks,
labels = lbl_intervals(),
left = TRUE,
close_end = TRUE,
raw = NULL
)
```

`x` |
A vector. |

`breaks` |
A numeric vector of cut-points or a function to create
cut-points from |

`labels` |
A character vector of labels or a function to create labels. |

`left` |
Logical. Left-closed or right-closed breaks? |

`close_end` |
Logical. Close last break at right? (If |

`raw` |
Logical. Use raw values in labels? |

`fillet()`

returns a `factor`

of the same length as `x`

, representing
the intervals containing the value of `x`

.

Other chopping functions:
`chop()`

,
`chop_equally()`

,
`chop_evenly()`

,
`chop_fn()`

,
`chop_mean_sd()`

,
`chop_n()`

,
`chop_proportions()`

,
`chop_quantiles()`

,
`chop_width()`

```
fillet(1:10, c(2, 5, 8))
```

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.